Replies: 1 comment
-
The correct parameters of the method is In addition, if you wish to toss the whole item stack, Here's an example of using bot.tossStack(bot.inventory.slots[32]); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I recently started learning Mineflayer and ran into this error:
I wanted to discard the leather from the inventory using this code:
if (messagestr.includes('drop')) item = bot.inventory.slots[32].type, await bot.toss(item)
However, the bot doesn't find this item.
What am I doing wrong?
Bot's inventory (obtained through /invsee):
Beta Was this translation helpful? Give feedback.
All reactions