mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

Is there any event for if an entity opens a container

Open fprackwieser opened this issue 4 years ago • 3 comments

Im looking for a function or an event that emits something when an entity opens a container. Example: bot.on("entityOpenContainer", (block, entity)=> {})

fprackwieser avatar Mar 27 '22 14:03 fprackwieser

You can use the chestLidMove event.

u9g avatar Mar 28 '22 15:03 u9g

but you cant see who opened the chest

fprackwieser avatar Mar 28 '22 17:03 fprackwieser

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.

IceTank avatar Mar 31 '22 18:03 IceTank