To the Minecraft Team,
Currently, entityHitBlock is limited to afterEvents, so it is not possible to intercept or cancel left-click/hit actions on blocks before the engine processes them.
When attempting to protect custom interactions or handle entity-like blocks (such as item frames), playerBreakBlock and playerInteractWithBlock are insufficient due to differences in behavior between Creative and Survival modes, as well as differences in the engine-level processing order.
For creators who need to precisely control interactions triggered by left-clicking (punching/hitting), the implementation of beforeEvents.entityHitBlock with a cancellable event context (ev.cancel = true) is essential.
We kindly request that you implement beforeEvents.entityHitBlock in a future API version.
Thank you for your consideration.
0 Comments
Please sign in to leave a comment.
Post a new comment: