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

twine / MobModuleOpts

Interface: MobModuleOpts โ€‹

Defined in: twine/src/mob/types.ts:7

Extra module metadata toModule passes straight through.

Extends โ€‹

  • MobOptions

Properties โ€‹

dimension? โ€‹

optional dimension?: Dimension

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


group? โ€‹

optional group?: string

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

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


optional menu?: false

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

false keeps it out of the menu.


tags? โ€‹

optional tags?: string[]

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

More menu pages it shows on, one per tag.


tickEvery? โ€‹

optional tickEvery?: number

Defined in: spool/dist/plugins/mob/types.d.ts:6

How often, in ticks, the caller runs Mob.tick (default 2). Gesture timings are counted in these polls.

Inherited from โ€‹

MobOptions.tickEvery


wakeRange? โ€‹

optional wakeRange?: number

Defined in: spool/dist/plugins/mob/types.d.ts:12

How near a player must be for the mob to run at all. Default 48, checked once a second.

Keep it above the mob's FOLLOW_RANGE so it wakes before it aggros.

Inherited from โ€‹

MobOptions.wakeRange

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