#Trying to make a right click item and I hit a snag

8 messages · Page 1 of 1 (latest)

still canyon
#
ItemEvents.rightClicked('kubejs:dayvoucher', event => {
    const { player } = event
    player.runCommand('/time set day')
    item.count--
})```
Might be super simple but here we go. I want to remove the item after clicked.
dawn scaffoldBOT
#

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

shrewd holly
#

event.item.count-- instead of item.count--

still canyon
#

ah

still canyon
shrewd holly
#

Not right now, still working on unification

still canyon
#

ah

still canyon