Expand description
Shared spawn-cycle state and ticking used by spawner block entities.
Structsยง
- Base
Spawner - Vanilla-style mutable spawner state shared by normal spawner block entities.
- Base
Spawner Config - Spawn-cycle limits of a
BaseSpawner: delays, mob counts and ranges. - Spawner
State ๐ - Spawner
Tick ๐Result
Enumsยง
- Next
Spawn ๐Data - Active spawn data of a spawner.
Constantsยง
- DEFAULT_
MAX_ ๐NEARBY_ ENTITIES - DEFAULT_
MAX_ ๐SPAWN_ DELAY - DEFAULT_
MIN_ ๐SPAWN_ DELAY - DEFAULT_
REQUIRED_ ๐PLAYER_ RANGE - DEFAULT_
SPAWN_ ๐COUNT - DEFAULT_
SPAWN_ ๐DELAY - DEFAULT_
SPAWN_ ๐RANGE - EVENT_
SPAWN ๐
Functionsยง
- choose_
weighted ๐ - Returns the index of a weighted pick from
entries. - configured_
or_ ๐random_ position - entity_
type_ ๐from_ owned_ nbt - equip_
from_ ๐table - random_
spawn_ ๐position - replace_
entity_ ๐id