Skip to main content

Spawn rule reference (3/5)

This page excerpts the reference from MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). Relative links in the original are removed.

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_biomeconditions.md)

Spawn Rules Documentation - minecraft:spawn_biomeconditions​

Contents​

  • Biome Filter
  • Spawn BrightnessFilter
  • Delay Filter
  • Density Limit
  • Difficulty Filter
  • Distance Filter
  • Mob Event Filter
  • Player In Village Filter
  • Spawns Above Block Filter
  • Spawn Weight

Defines the conditions under which an entity can spawn, including biome filters, brightness, height, and herd settings.

Spawn Biome Conditions Properties​

NameDefault ValueTypeDescription
minecraft:biome_filter (Biome Filter){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Biome Filter itemFilters allow data objects to specify test criteria which allows their use.
minecraft:biome_filter (as Array of objects)not setArray of objectsArray of filter objects.
minecraft:brightness_filternot setBrightness Filter itemRestricts spawning based on light level. Hostile mobs typically spawn in darkness (0-7), passive mobs in brighter areas.
minecraft:delay_filternot setDelay Filter itemDelays entity spawning by a configurable time after conditions are met. Useful for cooldowns after mob deaths.
minecraft:density_limitnot setDensity Limit itemLimits how many of this entity can exist in an area, with separate caps for surface and underground. Set -1 for unlimited.
minecraft:difficulty_filternot setDifficulty Filter itemRestricts spawning to specific difficulty levels (Peaceful, Easy, Normal, Hard).
minecraft:disallow_spawns_in_bubblenot setObjectPrevents spawning inside bubble columns.
minecraft:distance_filternot setDistance Filter itemControls spawning based on distance from the nearest player. Mobs typically spawn 24-128 blocks from players.
minecraft:height_filternot setHeight Filter itemRestricts spawning to specific Y-coordinate ranges. Useful for depth-based mob distribution.
minecraft:herd[]ObjectSpecifies herd spawning configuration. Can be a single herd object or an array of herd objects.
minecraft:herd (as Array of objects)not setArray of objectsArray of herd configurations.
minecraft:is_experimentalnot setObjectMarks this spawn rule as experimental. Only active when the corresponding experiment toggle is enabled.
minecraft:is_persistentnot setObjectWhen enabled, spawned entities will not despawn naturally. Used for mobs like villagers.
minecraft:mob_event_filternot setMob Event Filter itemControls spawning based on whether a specific mob event (like raids or wandering traders) is active.
minecraft:permute_type[]ObjectSpecifies permutation types for spawning. Can be a single object or an array of permutation objects.
minecraft:permute_type (as Array of objects)not setArray of objectsArray of permutation configurations.
minecraft:player_in_village_filternot setPlayer In Village Filter itemRestricts spawning to when a player is near a village. Used for iron golems, cats, and raid mobs.
minecraft:spawn_event{"event":""}Spawn Event itemTriggers a specific entity event when the mob spawns. Commonly used to initialize entity behavior.
minecraft:spawns_above_block_filter{"blocks":[],"distance":1}Spawns Above Block Filter itemFilters spawning based on blocks above the spawn point.
minecraft:spawns_lavanot setObjectIndicates the entity can spawn in lava.
minecraft:spawns_on_block_filter[]Array of objectsSpecifies blocks on which this entity can spawn. Can be a single block name string, an array of block objects with name property, or an array of strings representing block names.
minecraft:spawns_on_block_filter (as String)not setStringA single block name string
minecraft:spawns_on_block_filter (as Array of strings)not setArray of stringsAn array of block name strings
minecraft:spawns_on_block_prevented_filter[]Array of stringsSpecifies blocks on which this entity cannot spawn. Can be an array of block name strings.
minecraft:spawns_on_surfacenot setObjectWhen enabled, this entity can spawn on the world surface.
minecraft:spawns_undergroundnot setObjectWhen enabled, this entity can spawn underground (below the surface).
minecraft:spawns_underwaternot setObjectWhen enabled, this entity can spawn in water.
minecraft:weightnot setWeight itemRelative spawn probability compared to other entities in the same biome. Higher values = more frequent spawns. 100 is typical for common mobs.
minecraft:world_age_filternot setWorld Age Filter itemRestricts spawning based on world age (in ticks). Useful for progressive difficulty where certain mobs appear later.
minecraft:biome_filter​

Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects. This uses the Minecraft filter dataType (20) which properly handles the complex filter structure including string operators and values.

Biome Filter​

Biome Filter Properties​

JSON path: minecraft:biome_filter

NameDefault ValueTypeDescription
all_ofnot setArray of objectsAll of these tests must pass.
any_ofnot setArray of objectsAny of these tests must pass.
domainnot setStringThe domain the test should be performed in.
none_ofnot setArray of objectsNone of these tests must pass.
operatornot setStringThe comparison to apply with 'value'.
subjectnot setStringThe subject of this filter test.
testnot setStringThe name of the test to apply.
valuenot setInteger numberThe value being compared with the test.
Spawn BrightnessFilter​

Restricts mob spawning based on light level at the spawn location. Hostile mobs typically spawn in darkness (light level 0-7), while passive mobs spawn in brighter areas. Allows setting min/max brightness thresholds and whether to adjust for spawning on a block surface.

Spawn BrightnessFilter Properties​

JSON path: minecraft:brightness_filter

NameDefault ValueTypeDescription
adjust_for_weatherfalseBoolean true/falseWhen true, brightness is adjusted for the current weather (rain/thunder reduce light levels).
max15Integer numberMaximum light level (0-15) at which this entity can spawn. Value must be <= 15.
min0Integer numberMinimum light level (0-15) at which this entity can spawn. Value must be <= 15.
Delay Filter​

Delays entity spawning by a configurable amount of time after spawn conditions are met. Useful for preventing immediate respawning after mob deaths or creating spawn cooldowns for rare creatures.

Delay Filter Properties​

JSON path: minecraft:delay_filter

NameDefault ValueTypeDescription
identifierString
max0Integer number
min0Integer number
spawn_chance100Integer number
Density Limit​

Limits how many of this entity type can exist in an area, with separate caps for surface and underground spawning. This prevents overpopulation and controls mob density for performance and gameplay balance.

Density Limit Properties​

JSON path: minecraft:density_limit

NameDefault ValueTypeDescription
surface-1Integer number
underground-1Integer number
Difficulty Filter​

Restricts mob spawning to specific difficulty levels (Peaceful, Easy, Normal, Hard). For example, hostile mobs don't spawn on Peaceful, and some dangerous variants only appear on Hard difficulty.

Difficulty Filter Properties​

JSON path: minecraft:difficulty_filter

NameDefault ValueTypeDescription
maxhardMax choices
minpeacefulMin choices
Max choices​
ValueTitleDescription
easyEasy
hardHard
normalNormal
peacefulPeaceful
Distance Filter​

Controls spawning based on distance from the nearest player. Mobs typically spawn within a certain radius around players (24-128 blocks) and despawn when players move too far away.

Distance Filter Properties​

JSON path: minecraft:distance_filter

NameDefault ValueTypeDescription
max128Integer number
min24Integer number
Height Filter​

Same structure as Distance Filter.

Mob Event Filter​

Controls spawning based on whether a specific mob event is active. Mob events are world-level toggles (like raids or wandering traders) that can enable or disable certain spawn behaviors.

Mob Event Filter Properties​

JSON path: minecraft:mob_event_filter

NameDefault ValueTypeDescription
eventString
Player In Village Filter​

Restricts spawning based on whether a player is within village boundaries. Used for village-specific spawns like iron golems, cats, and raid mobs that should only appear when players are near villages.

Player In Village Filter Properties​

JSON path: minecraft:player_in_village_filter

NameDefault ValueTypeDescription
distancenot setInteger number
village_border_tolerance10Integer number
Spawns Above Block Filter​

Filters spawning based on blocks above the spawn location. This component appears to have been deprecated or changed in versions after 1.17.20.

[!Note] This spawn condition was used in versions 1.17.20 and earlier but appears to have been removed or replaced in newer versions.

[!Note] This item no longer works after format versions of at least 1.18.0.

Spawns Above Block Filter Properties​

JSON path: minecraft:spawns_above_block_filter

NameDefault ValueTypeDescription
blocks[]Object
distance1Integer number
Spawn Weight​

Defines the relative probability of this entity spawning compared to other entities in the same biome and spawn pool. Higher weight values mean more frequent spawns. A weight of 100 is typical for common mobs.

Spawn Weight Properties​

JSON path: minecraft:weight

NameDefault ValueTypeDescription
defaultnot setInteger number
rarity0Integer number
World Age Filter​

Same structure as Distance Filter.

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_brightnessfilter.md)

Spawn Rules Documentation - minecraft:spawn_brightnessfilter​

Restricts mob spawning based on light level at the spawn location. Hostile mobs typically spawn in darkness (light level 0-7), while passive mobs spawn in brighter areas. Allows setting min/max brightness thresholds and whether to adjust for spawning on a block surface.

Spawn BrightnessFilter Properties​

NameDefault ValueTypeDescription
adjust_for_weatherfalseBoolean true/falseWhen true, brightness is adjusted for the current weather (rain/thunder reduce light levels).
max15Integer numberMaximum light level (0-15) at which this entity can spawn. Value must be <= 15.
min0Integer numberMinimum light level (0-15) at which this entity can spawn. Value must be <= 15.

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_delayfilter.md)

Spawn Rules Documentation - minecraft:spawn_delayfilter​

Delays entity spawning by a configurable amount of time after spawn conditions are met. Useful for preventing immediate respawning after mob deaths or creating spawn cooldowns for rare creatures.

Delay Filter Properties​

NameDefault ValueTypeDescription
identifierString
max0Integer number
min0Integer number
spawn_chance100Integer number

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_densitylimit.md)

Spawn Rules Documentation - minecraft:spawn_densitylimit​

Limits how many of this entity type can exist in an area, with separate caps for surface and underground spawning. This prevents overpopulation and controls mob density for performance and gameplay balance.

Density Limit Properties​

NameDefault ValueTypeDescription
surface-1Integer number
underground-1Integer number

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_description.md)

Spawn Rules Documentation - minecraft:spawn_description​

The description block that identifies which entity these spawn rules apply to, via the entity identifier (e.g., 'minecraft:zombie'). Also specifies the population control group for managing spawn caps.

Spawn Description Properties​

NameDefault ValueTypeDescription
identifiernot setString
population_controlString

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_difficultyfilter.md)

Spawn Rules Documentation - minecraft:spawn_difficultyfilter​

Restricts mob spawning to specific difficulty levels (Peaceful, Easy, Normal, Hard). For example, hostile mobs don't spawn on Peaceful, and some dangerous variants only appear on Hard difficulty.

Difficulty Filter Properties​

NameDefault ValueTypeDescription
maxhardMax choices
minpeacefulMin choices
Max choices​
ValueTitleDescription
easyEasy
hardHard
normalNormal
peacefulPeaceful

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_distancefilter.md)

Spawn Rules Documentation - minecraft:spawn_distancefilter​

Controls spawning based on distance from the nearest player. Mobs typically spawn within a certain radius around players (24-128 blocks) and despawn when players move too far away.

Distance Filter Properties​

NameDefault ValueTypeDescription
max128Integer number
min24Integer number

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_heightfilter.md)

Spawn Rules Documentation - minecraft:spawn_heightfilter​

Restricts entity spawning to specific Y-coordinate ranges. Useful for creating depth-based mob distribution like slimes in swamps (below Y=40), or limiting surface mobs from spawning underground.

Height Filter Properties​

NameDefault ValueTypeDescription
max128Integer number
min24Integer number

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_herd.md)

Spawn Rules Documentation - minecraft:spawn_herd​

Configures group spawning behavior, including minimum and maximum herd size. Mobs like wolves, chickens, and zombies spawn in groups rather than individually. Also allows running events on the first N spawns or after M spawns.

Spawn Herd Properties​

NameDefault ValueTypeDescription
eventStringAn event to run after M number of the herd have spawned
event_skip_count0Integer numberNumber of the herd to skip before running the event
initial_eventStringEvent run for the first N of the herd are placed.
initial_event_count0Integer numberNumber of times that the initial event will run
max_size1Integer numberMaximum number in this group to attempt to spawn
min_size1Integer numberMinimum number in this group to attempt to spawn

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_mobeventfilter.md)

Spawn Rules Documentation - minecraft:spawn_mobeventfilter​

Controls spawning based on whether a specific mob event is active. Mob events are world-level toggles (like raids or wandering traders) that can enable or disable certain spawn behaviors.

Mob Event Filter Properties​

NameDefault ValueTypeDescription
eventString

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_permutetype.md)

Spawn Rules Documentation - minecraft:spawn_permutetype​

Weighted spawn permutation that selects which entity variant to spawn. Each permutation has an entity identifier and weight—the game randomly chooses between permutations based on relative weights when the spawn rule activates. Creates natural mob variety in spawn distributions.

Spawn PermuteType Properties​

NameDefault ValueTypeDescription
entity_typeStringPermutation to spawn when selected
min_guaranteed0Integer numberThe minimum number of this permutation to spawn
weightnot setInteger numberThe ratio of all of the entities that are in the permutation

(Source: ms-learn, creator/Reference/Content/SpawnRulesReference/Examples/SpawnRulesComponents/spawn_playerinvillagefilter.md)

Spawn Rules Documentation - minecraft:spawn_playerinvillagefilter​

Restricts spawning based on whether a player is within village boundaries. Used for village-specific spawns like iron golems, cats, and raid mobs that should only appear when players are near villages.

Player In Village Filter Properties​

NameDefault ValueTypeDescription
distancenot setInteger number
village_border_tolerance10Integer number
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13