To listening a open backpack event

Hi, I’d like to listening an open-inventory-event when a player open his backpack by press “E”, but it seems like
InteractInventoryEvent.Open could only called when a player open a chest container, is there any way to listening open player backpack?

Unfortunately, no. Minecraft no longer lets the server know when the player opens their inventory.

OK, but is there any other way could achieve this function? something dirt but effectively?:wink:

If the client doesn’t let the server know, there is literally no way to know.

It’s actually possible (at least on 1.10) to listen for the achievement when a player opens their inventory.
See this old discussion:

Around the time achievements came out(Taking Inventory!) the ability to tell when the client opened its own inventory appeared.

I don’t know if this trick is still possible on 1.12/1.13

If I remember correctly, it was removed in 1.12 when achievements were replaced with advancements.

Not to mention that they wholeheartedly removed the advancement for opening the inventory…