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

twine / UpgradeMeta

Interface: UpgradeMeta โ€‹

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

What Upgrade declares: an item that installs an enchantment on the items that take it.

Extends โ€‹

  • ItemDeclaration

Properties โ€‹

effects? โ€‹

optional effects?: EnchantmentEffects

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

Leave out for an upgrade the pack checks for itself with fitted.


env? โ€‹

optional env?: BuildEnv[]

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

Build environments it's in, e.g. ["dev"]. Omit for all.

Inherited from โ€‹

ItemDeclaration.env


ghost? โ€‹

optional ghost?: string | false

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

Its socket's faded icon in the bench; false for none.


group? โ€‹

optional group?: string

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

Its page in the admin item menu (/function <ns>:items). Defaults to "Other".

Inherited from โ€‹

ItemDeclaration.group


label โ€‹

label: string

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


look โ€‹

look: string

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

What the upgrade item looks like (a vanilla item model).


lore โ€‹

lore: string

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


optional menu?: false

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

false keeps it out of the menu, e.g. for a filler item.

Inherited from โ€‹

ItemDeclaration.menu


name โ€‹

name: string

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

Stable id: its module name, function folder, and give function <name>/give.

Inherited from โ€‹

ItemDeclaration.name


rarity? โ€‹

optional rarity?: Rarity

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

Its rarity: vanilla's rarity component, plus a lore line naming it in that colour.

Inherited from โ€‹

ItemDeclaration.rarity


tags? โ€‹

optional tags?: string[]

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

More menu pages it shows on, one per tag.

Inherited from โ€‹

ItemDeclaration.tags

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