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
| Name | Default Value | Type | Description |
|---|---|---|---|
| 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 item | Filters allow data objects to specify test criteria which allows their use. |
| minecraft:biome_filter (as Array of objects) | not set | Array of objects | Array of filter objects. |
| minecraft:brightness_filter | not set | Brightness Filter item | Restricts spawning based on light level. Hostile mobs typically spawn in darkness (0-7), passive mobs in brighter areas. |
| minecraft:delay_filter | not set | Delay Filter item | Delays entity spawning by a configurable time after conditions are met. Useful for cooldowns after mob deaths. |
| minecraft:density_limit | not set | Density Limit item | Limits how many of this entity can exist in an area, with separate caps for surface and underground. Set -1 for unlimited. |
| minecraft:difficulty_filter | not set | Difficulty Filter item | Restricts spawning to specific difficulty levels (Peaceful, Easy, Normal, Hard). |
| minecraft:disallow_spawns_in_bubble | not set | Object | Prevents spawning inside bubble columns. |
| minecraft:distance_filter | not set | Distance Filter item | Controls spawning based on distance from the nearest player. Mobs typically spawn 24-128 blocks from players. |
| minecraft:height_filter | not set | Height Filter item | Restricts spawning to specific Y-coordinate ranges. Useful for depth-based mob distribution. |
| minecraft:herd | [] | Object | Specifies herd spawning configuration. Can be a single herd object or an array of herd objects. |
| minecraft:herd (as Array of objects) | not set | Array of objects | Array of herd configurations. |
| minecraft:is_experimental | not set | Object | Marks this spawn rule as experimental. Only active when the corresponding experiment toggle is enabled. |
| minecraft:is_persistent | not set | Object | When enabled, spawned entities will not despawn naturally. Used for mobs like villagers. |
| minecraft:mob_event_filter | not set | Mob Event Filter item | Controls spawning based on whether a specific mob event (like raids or wandering traders) is active. |
| minecraft:permute_type | [] | Object | Specifies permutation types for spawning. Can be a single object or an array of permutation objects. |
| minecraft:permute_type (as Array of objects) | not set | Array of objects | Array of permutation configurations. |
| minecraft:player_in_village_filter | not set | Player In Village Filter item | Restricts spawning to when a player is near a village. Used for iron golems, cats, and raid mobs. |
| minecraft:spawn_event | {"event":""} | Spawn Event item | Triggers 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 item | Filters spawning based on blocks above the spawn point. |
| minecraft:spawns_lava | not set | Object | Indicates the entity can spawn in lava. |
| minecraft:spawns_on_block_filter | [] | Array of objects | Specifies 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 set | String | A single block name string |
| minecraft:spawns_on_block_filter (as Array of strings) | not set | Array of strings | An array of block name strings |
| minecraft:spawns_on_block_prevented_filter | [] | Array of strings | Specifies blocks on which this entity cannot spawn. Can be an array of block name strings. |
| minecraft:spawns_on_surface | not set | Object | When enabled, this entity can spawn on the world surface. |
| minecraft:spawns_underground | not set | Object | When enabled, this entity can spawn underground (below the surface). |
| minecraft:spawns_underwater | not set | Object | When enabled, this entity can spawn in water. |
| minecraft:weight | not set | Weight item | Relative spawn probability compared to other entities in the same biome. Higher values = more frequent spawns. 100 is typical for common mobs. |
| minecraft:world_age_filter | not set | World Age Filter item | Restricts 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| all_of | not set | Array of objects | All of these tests must pass. |
| any_of | not set | Array of objects | Any of these tests must pass. |
| domain | not set | String | The domain the test should be performed in. |
| none_of | not set | Array of objects | None of these tests must pass. |
| operator | not set | String | The comparison to apply with 'value'. |
| subject | not set | String | The subject of this filter test. |
| test | not set | String | The name of the test to apply. |
| value | not set | Integer number | The 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| adjust_for_weather | false | Boolean true/false | When true, brightness is adjusted for the current weather (rain/thunder reduce light levels). |
| max | 15 | Integer number | Maximum light level (0-15) at which this entity can spawn. Value must be <= 15. |
| min | 0 | Integer number | Minimum 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| identifier | String | ||
| max | 0 | Integer number | |
| min | 0 | Integer number | |
| spawn_chance | 100 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| surface | -1 | Integer number | |
| underground | -1 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | hard | Max choices | |
| min | peaceful | Min choices |
Max choices
| Value | Title | Description |
|---|---|---|
| easy | Easy | |
| hard | Hard | |
| normal | Normal | |
| peaceful | Peaceful |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 128 | Integer number | |
| min | 24 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| event | String |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| distance | not set | Integer number | |
| village_border_tolerance | 10 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| blocks | [] | Object | |
| distance | 1 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| default | not set | Integer number | |
| rarity | 0 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| adjust_for_weather | false | Boolean true/false | When true, brightness is adjusted for the current weather (rain/thunder reduce light levels). |
| max | 15 | Integer number | Maximum light level (0-15) at which this entity can spawn. Value must be <= 15. |
| min | 0 | Integer number | Minimum 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| identifier | String | ||
| max | 0 | Integer number | |
| min | 0 | Integer number | |
| spawn_chance | 100 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| surface | -1 | Integer number | |
| underground | -1 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| identifier | not set | String | |
| population_control | String |
(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
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | hard | Max choices | |
| min | peaceful | Min choices |
Max choices
| Value | Title | Description |
|---|---|---|
| easy | Easy | |
| hard | Hard | |
| normal | Normal | |
| peaceful | Peaceful |
(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
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 128 | Integer number | |
| min | 24 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 128 | Integer number | |
| min | 24 | Integer 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| event | String | An event to run after M number of the herd have spawned | |
| event_skip_count | 0 | Integer number | Number of the herd to skip before running the event |
| initial_event | String | Event run for the first N of the herd are placed. | |
| initial_event_count | 0 | Integer number | Number of times that the initial event will run |
| max_size | 1 | Integer number | Maximum number in this group to attempt to spawn |
| min_size | 1 | Integer number | Minimum 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| event | String |
(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
| Name | Default Value | Type | Description |
|---|---|---|---|
| entity_type | String | Permutation to spawn when selected | |
| min_guaranteed | 0 | Integer number | The minimum number of this permutation to spawn |
| weight | not set | Integer number | The 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| distance | not set | Integer number | |
| village_border_tolerance | 10 | Integer number |
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |