I've been trying this for a while but basically I want to add to my Upgraders and other codes to say
If miner isn't on container, go to flag
If miner is on container, get energy from container.
I've been trying to set it up and look for help in so many places but I keep turning up with code that comes out as undefined or not working as it is intended. Anyone that can help?