Equip the not equipment type item to equipment slot and able update bot.inventory. #3515
Open
1 task done
Labels
possible bug
Stage1
just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Versions
Detailed description of a problem
I am using mineflayer control bot's inventory, and I want to swap the item to the equipment slot. i found the methods "bot.equip" and "bot.moveSlotItem", i tried these method to equip equipment and it's worked.
After that I try equip an
Apple
tofeet
by these method, and both worked, thebot.inventory
been updated and the window fired aupdateSlot
event. But it should not be happend. I logout and login server again, theApple
still in my inventory, but not in equipment slot. Thebot.inventory
should be sync to server's.This screenshot shows that i equipped a steak. ( The left and right vertical line is the equipment slot. the bottom is quick bar, middle is storage)
What did you try yet?
I tried to find the same question in issues, but because my bad english did not find the same issue(may be my searched keyword is wrong).
Your current code
I am using python to write this, like the upper picture, the item will updated by
window
'supdateSlot
event.i made a simpe console to eval python code. like code:
print(self.bot.inventory)
,self.bot.equip(self.bot.inventory.slots[9], "feet")
andself.bot.moveSlotItem(9, 8)
.Expected behavior
I think the
bot.inventory
should be sync to server's. should not update and equipApple
to the equipment slot.Additional context
I am using Python to write a mineflayer application.
The text was updated successfully, but these errors were encountered: