#Making an item that doesn't slow player on use
1 messages · Page 1 of 1 (latest)
yes
hmmm, why u don't use script? the most part of script api is already stable, u have itemUse event
Does that work without item component?
on_use?
yes, it works without it.
Well food in this case but yeah
are you going to use script?
Testing it right now
if it works then yeah
Yeah I just made it work as well. Thanks!
Bad timing, sorry! I managed to get start use to work, but how to I detect stop use? Testing world.afterEvents.itemStopUse.subscribe and nothing. Does that still require the food component?
all of these things dont require components.
world.afterEvents.itemStopUse.subscribe(event => {
event.source.runCommand('say Use end')
})
Not getting this to work
Documentation says this is for chargeable items though
It should work on any item then
i dont think it works like that
works for me
nvm
so idk why its not working for you?
probably the manifest
Yeah it works on an edible item, but not on one without components or one that doesn't slow the player down
okay
I think it does need it then.