#block right click activates twice. what can i do to fix?
14 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
send codes first
its literally just:
BlockEvents.rightClicked("minecraft:redstone_block", event => {
event.player.tell("Block Clicked")
})
@analog ferry
This is a classic problem. When both hands are empty, any right-click event will be triggered twice, namely the main hand and the off hand.
There is a general but potentially minor solution: ```js
if (event.hand == "offhand") return;
hmm, i feel like this should be added auto xD
since it feels kinda unintuitive
also, no
still dont work
BlockEvents.rightClicked("minecraft:redstone_block", event => {
if (event.hand == "offhand") return;
event.player.tell("Block Clicked")
})
oh wait a min