altoclef
altoclef copied to clipboard
Bot puts ingredients into crafting table and right back out
Steps to Reproduce (as best as you can)
Happens during normal play. Maybe something to do with alt tabbing? not sure.
Expected Behavior
Not get stuck in crafting table
Actual Behavior (What lead to the bot getting permanently stuck)
Places items to craft something in my case a stone pickaxe then puts all the required items back in its inventory until I pick up the pickaxe from the crafting table slot to unstuck it.
Crashlogs and Screenshots (if applicable)
N/A
Other mods (if applicable)
N/A
Discord username (if you want updates)
Mafioso Landslide#3193
Developer Notes (leave this blank)
Difficulty: __ Estimated Time Required: __ Once development starts.
I have seen this a few times and I am not sure what causes it yet.
Are you playing locally? Or on a server?
server
will do testing to see if it can happen on a listen server
ok now that im doing testing I can say it happens only on servers and its not only for crafting it can be for equipping armor aswell.
a solution may be to just up the crafting delay in the settings (NOT CONFIRMED)
Yeah it doesnt fix it lol
Interesting. We will need a way of checking if the items are equipped server side.
The reason that this happens on servers is because the server holds the database of truth for your player. Altoclef can put the items on, but if the server doesn't register or doesn't allow it, then they will automatically dequip as soon as the player updates. Altoclef doesn't understand this behavior, so it attempts to put them on again and thus the loop.
At the moment, it is actually impossible to tell what the server will update the player with, so increasing the delay is the best bet. However, it could be that the server is refusing it because of altoclef in general.
Have you been able to replicate this in a local instance at all?
I have not been able to make this happen locally at all. But an idea to fix would be to increase all crafting delays by .1 every time it notices that its crafting action failed. Are there any temporary fixes you can suggest for me?
Is this something you are considering working on because I want to run a server with butlers that people can use and this is a major problem that happens often enough to be an issue.