#How do I make an item use animation play when right clicked?

6 messages · Page 1 of 1 (latest)

steep shore
#
StartupEvents.registry('item', event => {
    event.create('roll_of_paper').useAnimation('crossbow')
})```
how do I make it so it plays the crossbow animation when the roll of paper is right clicked?
haughty mauveBOT
#

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

clear frost
#

for the use animation to play the item has to have a use duration and be useable which requires a couple extra steps js StartupEvents.registry('item', event => { event.create('roll_of_paper').useAnimation("crossbow") .use(c => true) .useDuration(i => 20) })

steep shore
#

gotcha, will that just make it do the animtion on right click, or do I need to tell it to in the server script?

#

ok it's doing it now it's just in the wrong place

#

thank you