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
Monsterhierarchy. Shared rules use this marker to reject leashing. - Monster
- Shared hostile-mob behavior. Concrete mobs delegate to
_monsterhooks to avoid name collisions with base-trait methods.
Functions§
- is_
spawn_ 🔒allowed_ on_ difficulty - Applies vanilla’s
EntityType.canSpawndifficulty 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.