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

spool / EntitySet

Class: EntitySet โ€‹

Defined in: plugins/entity_set/index.ts:11

A named set of entities tracked by a tag, so you query @e[tag=...] instead of scanning all of @e.

Sets with the same name share members.

Constructors โ€‹

Constructor โ€‹

new EntitySet(name): EntitySet

Defined in: plugins/entity_set/index.ts:12

Parameters โ€‹

name โ€‹

string

Returns โ€‹

EntitySet

Properties โ€‹

name โ€‹

readonly name: string

Defined in: plugins/entity_set/index.ts:12

Methods โ€‹

add() โ€‹

add(ctx, who?): void

Defined in: plugins/entity_set/index.ts:15

Mark who (default @s) as a member - call where the entity is summoned.

Parameters โ€‹

ctx โ€‹

FunctionContext

who? โ€‹

Selector = ctx.self

Returns โ€‹

void


all() โ€‹

all(): Selector

Defined in: plugins/entity_set/index.ts:25

A selector over members only: a bounded @e[tag=name], not a full sweep.

Returns โ€‹

Selector


nearest() โ€‹

nearest(): Selector

Defined in: plugins/entity_set/index.ts:30

The nearest single member (@e[tag=name,limit=1,sort=nearest]).

Returns โ€‹

Selector


remove() โ€‹

remove(ctx, who?): void

Defined in: plugins/entity_set/index.ts:20

Drop who (default @s) from the set.

Parameters โ€‹

ctx โ€‹

FunctionContext

who? โ€‹

Selector = ctx.self

Returns โ€‹

void

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