Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Structure spawn overrides

Generated from the 26.3 decompile by tools/gen_reference.py. Do not edit by hand.

Which structures replace a biome’s spawn list, for which mob category, and with what. A structure JSON’s spawn_overrides map is read into Structure.spawnOverrides; when NaturalSpawner builds a spawn list, ChunkGenerator.getMobsAt walks the structures that chunk references, in no fixed order, and the first that declares an override for the category and whose box contains the position answers; the biome’s list is then not consulted. An override with an empty spawn list is therefore a ban, not a no-op. The one exception is the creatures a chunk gets while it generates: NaturalSpawner.spawnMobsForChunkGeneration draws the creature category from the biome’s list and reads no override. box is piece (only inside a piece’s own bounding box) or full (anywhere in the structure’s box, which for a structure that adapts the terrain around it is grown by twelve blocks on every side). The mechanism is on entity lifecycle; the nether fortress has a second, hard-coded list in front of this one.

52 structures carry the field · 6 declare an override · 23 overrides in all

structurecategoryboxwhat spawns instead (weight, min–max)
ancient_cityambientfullnothing — the category is suppressed inside the box
ancient_cityaxolotlsfullnothing — the category is suppressed inside the box
ancient_citycreaturefullnothing — the category is suppressed inside the box
ancient_citymiscfullnothing — the category is suppressed inside the box
ancient_citymonsterfullnothing — the category is suppressed inside the box
ancient_cityunderground_water_creaturefullnothing — the category is suppressed inside the box
ancient_citywater_ambientfullnothing — the category is suppressed inside the box
ancient_citywater_creaturefullnothing — the category is suppressed inside the box
fortressmonsterpieceblaze (10, 2–3), zombified_piglin (5, 4–4), wither_skeleton (8, 5–5), skeleton (2, 5–5), magma_cube (3, 4–4)
monumentaxolotlsfullnothing — the category is suppressed inside the box
monumentmonsterfullguardian (1, 2–4)
monumentunderground_water_creaturefullnothing — the category is suppressed inside the box
pillager_outpostmonsterfullpillager (1, 1–1)
swamp_hutcreaturepiececat (1, 1–1)
swamp_hutmonsterpiecewitch (1, 1–1)
trial_chambersambientpiecenothing — the category is suppressed inside the box
trial_chambersaxolotlspiecenothing — the category is suppressed inside the box
trial_chamberscreaturepiecenothing — the category is suppressed inside the box
trial_chambersmiscpiecenothing — the category is suppressed inside the box
trial_chambersmonsterpiecenothing — the category is suppressed inside the box
trial_chambersunderground_water_creaturepiecenothing — the category is suppressed inside the box
trial_chamberswater_ambientpiecenothing — the category is suppressed inside the box
trial_chamberswater_creaturepiecenothing — the category is suppressed inside the box

The other 46 structures carry the field empty — the field is required — and the biome’s list stands.