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

twine / registerItemGiveCommands

Function: registerItemGiveCommands() โ€‹

registerItemGiveCommands(dp, path?): void

Defined in: twine/src/item/registry.ts:27

Emits a <path>/<name> give function per registerItemed item. No-op in prod.

Call from a module's register, after the item modules are imported.

Parameters โ€‹

dp โ€‹

Datapack

path? โ€‹

string = "debug/give"

Returns โ€‹

void

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