#How can I make a food make the drinking sound when being consumed?
46 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
It is possible, try checking the kubejs bookstack, this shoumd be listed in the item builder methods
Why use bookstack when there's a much better wiki?
https://kubejs.com/wiki/tutorials/item-registry#custom-uses
.useAnimation('drink') adds the drinking animation + sound
i'm just used to it, my mistake
oh thank you! I’ll test it soon when I’m able to
Does 600 define the duration and does it define it in ticks or seconds?
and which one is the value of the effect
I think it is:
.effect(effect, dur, amp, idk)
You'll want to check with Probe if you're using VSCode
Actually I can go check for you
Probe?
ProbeJS is an addon mod for KubeJS that generates typings files for VSCode, allowing VSCode to offer autocompletions for a ton of things!
Mod by @rare lance
ooh thanks
but if you can let me know it'd be much appreciated
i don't think im able to check rn
Ye
Chance can't be omitted btw
will it be speed 1 or speed 2?
Just set chance to 1
ty
Level yes
1 is speed 1, 69 is speed 69
okay great
because in commands if you make it 1 its speed 2
and speed 0 is speed 1
Ye
this didn't seem to work
it crashes my game
points me towards the exact line where this piece of code was
food
.hunger(6)
.saturation(6)
.effect('poison', 600, 254, 1)
.alwaysEdible()
.fastToEat()
//.useAnimation('drink')
})```
it compressed weirdly
it can be cleaned
but here's the code
add .useAnimation('drink') in Item builder instead of Food builder