#Item or block event please help!

6 messages · Page 1 of 1 (latest)

sturdy elm
#

I have spent the last 5 hours trying to make leather turn into my custom item wet leather when thrown into water or right-clicked on water and I have gotten very close but I just started learning javascript through kubejs, the documentation has got me through everything else but as far as this function all I can get is the leather to turn to wet leather when Im standing in the water and throw it, it doesn't try to work at all if I try the BlockEvent.rightClicked Kubejs its driving me crazy please help

celest raftBOT
#

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

upbeat gust
#

use ItemEvents.rightClicked

sturdy elm
#

I will try it out

#

well thats pretty close actually but It only works if im standing in the water still

sturdy elm
#

I found the issue I was overcomplicating the code and not using the event.player.rayTrace