So I'm trying to stop execution while the player is mining, I came up with the following.
Execution.delayWhile(()->bot.player.getAnimationId() != -1 || bot.player.isMoving(), 2000, 45000);
The issue I'm having is if the player gets through an entire mining cycle and still hasn't mined the ore...