Thanks, after looking at the bot for a while I have noticed a few things:
When the script was stopping, it would check a minigame, not sure if this is anti ban, but it doesn't happen during the normal running of the bot.
The mouse stays perfectly still after an action, it could probably do with moving slightly about during actions.
If you leave the food tab blank, the bot will stop even when I had food in the inventory.
Thanks for reading my feedback