It works okay, but maybe you could make a few changes:
1. It fills a bag, continues, fills the next bag, continues, and fills again (which takes time); when a portal opens, it goes there the first time but doesn't fill any bags—it leaves, fills a bag, and if there's enough time left, it goes back into the portal.
2. If I run out of 140+ nodes and need to mine new ones, and a portal opens, it doesn't switch over and just keeps mining.
Maybe add the special attack for the Dragon Pickaxe.
Otherwise, everything runs pretty well; it starts games and doesn't get stuck anywhere.
Thanks for the review :D