Skip to content

Spawn Bias

Spawn bias answers: how likely is this root to appear here?

spawn_bias can be authored on ancestry, lineage, and root files. Ancestry and lineage provide reusable place weights, and the root can provide identity-specific weights for the same places.

{
"spawn_bias": {
"default": 0.2,
"biomes": {
"minecraft:dark_forest": 3.0
},
"biome_tags": {
"#minecraft:is_forest": 1.5
},
"dimensions": {
"minecraft:the_nether": 0.0
}
}
}
FieldTypeRequiredNotes
defaultnumbernoGeneral weight when no more specific entry applies.
biomesobjectnoBiome id to weight.
biome_tagsobjectnoBiome tag id to weight. The leading # is optional.
dimensionsobjectnoDimension id to weight.

No individual field inside spawn_bias is required. Use only the weights that matter for that ancestry, lineage, or root override.

At a spawn point, Townstead resolves the effective weight in this order:

MatchBehaviour
Exact biomeWins over every other match.
Biome tagUses the highest matching tag weight.
DimensionUsed when no biome or tag matches.
defaultUsed when no specific entry matches.
Missing weightTreated as 1.0.

Spawn bias from supporting files is resolved for the selected root. If the same place is weighted in more than one supporting file, the more identity-specific value is used.

{
"spawn_bias": {
"default": 0.05,
"biomes": {
"minecraft:deep_dark": 2.4,
"minecraft:dripstone_caves": 1.6,
"minecraft:lush_caves": 1.6
},
"biome_tags": {
"c:is_underground": 1.2
}
}
}

This is the sort of weighting a Moon Elf lineage might use. The lineage still belongs to the Elf ancestry; mixed ancestry labels belong in Heritage.