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

twine / OnAttack

Variable: OnAttack โ€‹

const OnAttack: (item) => MethodDecorator

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

Runs the method as the player when they damage an entity holding item.

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.