I am testing a different mod that I have created by afking it and when the event occurs, I want the user to mine the blocks. My testing went well on this, however now I am having an issue.
I have coded that sometimes the event happens a second time during the first(essentially an upgraded version), however when teleporting to the new event, it should restart the mining. However if I am tabbed out, it instead does nothing. If I am tabbed in, it works fine and starts holding left click again, not sure how to fix this so that it can happen when tabbed out.
I want it to restart holding left click as the teleport stops it at first.