#how to make a "RightClickEmpty" event
9 messages · Page 1 of 1 (latest)
what if there is nothing in your hand? sorry, forgot to clarify
Then you’ll interact with nothing in your hand. It’s still ran on the client.
What prevents it from reaching the server is a failing actionresult which you can manipulate on the client
Of course you are. I only need such an event on the client anyway.
No buddy, it doesn't work when I press rcm in the air. Only when holding any object. Perhaps there is a misunderstanding between us, but let me remind you that I need an event listener that triggers when I right-click in the air without items.
Solved. I throw the mixin into MinecraftClient.handleInputEvents and make the following check this.options.useKey.isPressed() && this.crosshairTarget != null && this.crosshairTarget.getType().equals(HitResult.Type.MISS)