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

twine / BenchMeta

Interface: BenchMeta โ€‹

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

What Bench declares: a workbench that fits for's upgrades.

Extends โ€‹

  • ItemDeclaration

Properties โ€‹

background? โ€‹

optional background?: string

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


base โ€‹

base: number

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

Slots for the item being upgraded, the result, and the button that takes upgrades off.


carry? โ€‹

optional carry?: Pick<BenchCarry, "item" | "slot" | "background" | "tag">

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

Opens the bench from the held item. A module's @BenchCarry adds slots and hooks.


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


filler โ€‹

filler: ItemLike

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

The locked item in unused slots.


for โ€‹

for: ItemClassRef

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


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


look? โ€‹

optional look?: ModelRef

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

The model the placer and the placed bench show.


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


out โ€‹

out: number

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


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


recipe? โ€‹

optional recipe?: (self) => RecipeDef

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

A recipe that makes the placer, given it. Registered as <name>.

Parameters โ€‹

self โ€‹

ItemValue

Returns โ€‹

RecipeDef


strip โ€‹

strip: number

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


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


title โ€‹

title: string

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

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