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

spool / SocketSlot

Interface: SocketSlot โ€‹

Defined in: plugins/gui/types.ts:5

A slot the player puts items into; anything accepts doesn't match is pushed back out.

Properties โ€‹

accepts โ€‹

readonly accepts: ItemValue

Defined in: plugins/gui/types.ts:7


at โ€‹

readonly at: number

Defined in: plugins/gui/types.ts:6


ghost? โ€‹

readonly optional ghost?: string | false

Defined in: plugins/gui/types.ts:13

The faded icon behind the empty slot, as a vanilla texture like minecraft:item/arrow. Defaults to the icon of accepts's item model or id; false draws none. Baked from the client jar when the resource pack is written.


open? โ€‹

readonly optional open?: Condition

Defined in: plugins/gui/types.ts:20

While this fails, the socket holds the GUI's locked item and pushes anything else out. Checked every tick as the GUI's marker, at the barrel, so a score on @s is cheap.


single? โ€‹

readonly optional single?: boolean

Defined in: plugins/gui/types.ts:15

Holds one item: the rest of a stack put in goes back out.

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