#Making an item that doesn't slow player on use

1 messages · Page 1 of 1 (latest)

oblique folio
#

Is there any way to make an item that doesn't slow the player down when holding right click to use? Using currently released non-experimental features.
I know chargeable would make this possible, but looking for a non-experimental way.

inland ginkgo
#

?

#

ur using food component for right click?

oblique folio
#

yes

inland ginkgo
#

hmmm, why u don't use script? the most part of script api is already stable, u have itemUse event

oblique folio
#

Does that work without item component?

proven star
#

yes, it works without it.

oblique folio
#

Well food in this case but yeah

proven star
oblique folio
#

Testing it right now

#

if it works then yeah

#

Yeah I just made it work as well. Thanks!

proven star
#

cool.

oblique folio
# proven star oh

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?

proven star
oblique folio
#
world.afterEvents.itemStopUse.subscribe(event => {
    event.source.runCommand('say Use end')
})
#

Not getting this to work

#

Documentation says this is for chargeable items though

proven star
#

?

#

you didnt define the item.

#

its not checking for any item, its just nothing

oblique folio
#

It should work on any item then

proven star
#

i dont think it works like that

proven star
#

nvm

#

so idk why its not working for you?

inland ginkgo
#

probably the manifest

oblique folio
#

Yeah it works on an edible item, but not on one without components or one that doesn't slow the player down

proven star
#

I think it does need it then.