Skip to main content

Module base_spawner

Module base_spawner 

Source
Expand description

Shared spawn-cycle state and ticking used by spawner block entities.

Structsยง

BaseSpawner
Vanilla-style mutable spawner state shared by normal spawner block entities.
BaseSpawnerConfig
Spawn-cycle limits of a BaseSpawner: delays, mob counts and ranges.
SpawnerState ๐Ÿ”’
SpawnerTickResult ๐Ÿ”’

Enumsยง

NextSpawnData ๐Ÿ”’
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 ๐Ÿ”’