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

twine / CustomItemMeta

Type Alias: CustomItemMeta โ€‹

CustomItemMeta = CustomItemCommon & { item: Item; label?: never; look?: never; vanilla?: true; } | { item?: never; label: TextComponent; look: Item; vanilla?: never; }

Defined in: twine/src/item/types.ts:58

What CustomItem declares: an item, or a look and label for an item vanilla does nothing with.

It gets the id custom_data: { smithed: { id: "<ns>:<name>" } } and is matched by it, unless vanilla is set.

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