Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

twine / OnUse

Variable: OnUse โ€‹

const OnUse: (item) => MethodDecorator

Defined in: twine/src/item/handlers.ts:18

Runs the method as the player when they use item (minecraft:using_item): food, bow, shield... For others use OnRightClick.

Parameters โ€‹

item โ€‹

ItemClassRef

Returns โ€‹

MethodDecorator

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.