Appearance
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? โ
optionaleffects?:EnchantmentEffects
Defined in: twine/src/item/types.ts:86
Leave out for an upgrade the pack checks for itself with fitted.
env? โ
optionalenv?: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? โ
optionalghost?:string|false
Defined in: twine/src/item/types.ts:88
Its socket's faded icon in the bench; false for none.
group? โ
optionalgroup?: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
menu? โ
optionalmenu?: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? โ
optionalrarity?: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? โ
optionaltags?:string[]
Defined in: twine/src/item/types.ts:16
More menu pages it shows on, one per tag.
Inherited from โ
ItemDeclaration.tags