There are already the itemUseOn before and after events, however these no longer work when interacting with a block using an empty hand. Therefore I propose either (or both):
1. Make the itemUseOn event respond to an empty hand. This would return an event argument with either an empty or undefined itemStack when the user does not hold an item.
2. Make a new event, something along the lines of blockInteract, which could be triggered when a player interacts with any block, or just blocks with the "minecraft:on_interact" flag in their json, or something along either of those lines.
This would be helpful to developers since, for example, in my use case, I would like to open a menu using the @minecraft/server-ui module upon block interaction, which i dont think is currently possible. If it is possible, it might be due to some weird workaround, or is not inherently clear, both of which are not ideal.
Please sign in to leave a comment.
0 Comments