mineflayer
mineflayer copied to clipboard
Is there any event for if an entity opens a container
Im looking for a function or an event that emits something when an entity opens a container.
Example:
bot.on("entityOpenContainer", (block, entity)=> {})
You can use the chestLidMove event.
but you cant see who opened the chest
but you cant see who opened the chest
No the server dose not tell you who opened the chest. You could raycast and look for arm swing animations for all entities near to see if they could have opened the chest.