mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

How to know what item the user gave to the bot?

Open SmallMarbles opened this issue 2 years ago • 1 comments

So, i wanted to make a shop bot.

Essentially, the user drops for example, 5 emeralds.

The bot gets these 5 emeralds, but how can i check if the user REALLY gave 5 emeralds and not 2 dirt blocks ( for example )?

And if it gets 5 emeralds, it drops the desired item.

SmallMarbles avatar Sep 07 '23 17:09 SmallMarbles

Join the discord for this type of request

WhoTho avatar Sep 10 '23 18:09 WhoTho