#block right click activates twice. what can i do to fix?

14 messages · Page 1 of 1 (latest)

faint yarrow
#

title

iron falconBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

analog ferry
#

send codes first

faint yarrow
#

its literally just:

BlockEvents.rightClicked("minecraft:redstone_block", event => {
    event.player.tell("Block Clicked")
})
#

@analog ferry

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;

faint yarrow
#

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")
})
analog ferry
#

oh wait a min