Skip to main content

Module monster

Module monster 

Source
Expand description

Shared hostile-mob markers, behavior, and spawn rules.

Constants§

BRIGHT_LIGHT_NO_ACTION_TIME_INCREMENT 🔒
DEFAULT_XP_REWARD
SKY_LIGHT_SPAWN_ROLL_BOUND 🔒
THUNDERING_SKY_DARKENING 🔒

Traits§

Enemy
Marks hostile entities, including those outside the Monster hierarchy. Shared rules use this marker to reject leashing.
Monster
Shared hostile-mob behavior. Concrete mobs delegate to _monster hooks to avoid name collisions with base-trait methods.

Functions§

is_spawn_allowed_on_difficulty 🔒
Applies vanilla’s EntityType.canSpawn difficulty gate here until Steel has a creation/spawner gate that rejects hostile types on Peaceful.
sample_monster_spawn_light_test 🔒
Samples the dimension’s spawn-light provider. Vanilla uses uniform providers; unknown distributions currently return their minimum.