### Get Entity Component Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.0.61/Scripting.html Demonstrates retrieving a component from an entity and modifying its data. This example shows how to get the 'minecraft:position' component and update its coordinates. ```javascript let globals = { ready: false }; const mySystem = server.registerSystem(0, 0); mySystem.update = function() { if(globals.ready == false) { globals.ready = true; let entity = this.createEntity("entity", "minecraft:pig"); let positionComponent = this.getComponent(entity, "minecraft:position"); if (positionComponent != null) { positionComponent.data.x = 0; positionComponent.data.y = 0; positionComponent.data.z = 0; } } }; ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.200.2/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Get Entity Component Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.0.60/Scripting.html Demonstrates retrieving a component from an entity and modifying its data. This example shows how to get the 'minecraft:position' component and update its coordinates. ```javascript let globals = { ready: false }; const mySystem = server.registerSystem(0, 0); mySystem.update = function() { if(globals.ready == false) { globals.ready = true; let entity = this.createEntity("entity", "minecraft:pig"); let positionComponent = this.getComponent(entity, "minecraft:position"); if (positionComponent != null) { positionComponent.data.x = 0; positionComponent.data.y = 0; positionComponent.data.z = 0; } } }; ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.57/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Get Entity Component Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.0.58/Scripting.html Demonstrates retrieving a component from an entity and modifying its data. This example shows how to get the 'minecraft:position' component and update its coordinates. ```javascript let globals = { ready: false }; const mySystem = server.registerSystem(0, 0); mySystem.update = function() { if(globals.ready == false) { globals.ready = true; let entity = this.createEntity("entity", "minecraft:pig"); let positionComponent = this.getComponent(entity, "minecraft:position"); if (positionComponent != null) { positionComponent.data.x = 0; positionComponent.data.y = 0; positionComponent.data.z = 0; } } }; ``` -------------------------------- ### Volume Definition Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.19.0.0/1.19.2.2/Volumes.html An example of a volume definition, showcasing the use of format_version and the minecraft:volume component with fog settings. ```json { "format_version": "1.17.0", "minecraft:volume": { "description": { "identifier": "your_custom_namespace:sample_volume" }, "components": { "minecraft:fog": { "fog_identifier": "minecraft:fog_savanna", "priority": 1 } } } } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.4/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Get Entity Component Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.15.0.0/1.15.0.53/Scripting.html Demonstrates retrieving a component from an entity and modifying its data. This example shows how to get the 'minecraft:position' component and update its coordinates. ```javascript let globals = { ready: false }; const mySystem = server.registerSystem(0, 0); mySystem.update = function() { if(globals.ready == false) { globals.ready = true; let entity = this.createEntity("entity", "minecraft:pig"); let positionComponent = this.getComponent(entity, "minecraft:position"); if (positionComponent != null) { positionComponent.data.x = 0; positionComponent.data.y = 0; positionComponent.data.z = 0; } } }; ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.90.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.60/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.230.50/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.80.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.50.7/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.230.52/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Example Volume Definition Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.20.0.0/1.20.60.4/Volumes.html An example of a volume definition with a fog component. ```json { "format_version": "1.17.0", "minecraft:volume": { "description": { "identifier": "your_custom_namespace:sample_volume" }, "components": { "minecraft:fog": { "fog_identifier": "minecraft:fog_savanna", "priority": 1 } } } } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.40.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.30.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.52/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.50/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.20.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.200.51/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.70.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.17.0.0/1.17.0.50/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.90.21/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.80.28/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.61/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.60.10/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.57/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.51/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.0.3/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.50/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.90.28/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.59/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.90.27/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.60/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.90.26/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.90.25/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.100.59/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.200.55/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.80.27/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.200.56/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.80.25/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.80.22/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.53/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.210.58/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.80.20/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.70.26/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.220.52/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.70.25/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.220.51/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.70.20/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Test Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.16.0.0/1.16.230.54/Entities.html Examples of test configurations, including a full version with subject and operator, and a short version using defaults. ```APIDOC Full.. { "test": "weather_position", "subject": "self", "operator": "equals", "value": "player" } Short (using Defaults).. { "test": "weather_position", "value": "player" } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.60.28/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Example Volume Definition Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.19.0.0/1.19.70.2/Volumes.html An example of a Minecraft volume definition with fog component. ```json { "format_version": "1.17.0", "minecraft:volume": { "description": { "identifier": "your_custom_namespace:sample_volume" }, "components": { "minecraft:fog": { "fog_identifier": "minecraft:fog_savanna", "priority": 1 } } } } ``` -------------------------------- ### Getting Started with Minecraft Spawn Rules Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.21.0.0/1.21.60.27/Entities.html Guide on creating new spawn rules within a Minecraft Bedrock Behavior Pack. It covers folder structure, JSON file creation, ID conventions, and pool assignments for population control. ```json { "description": { "identifier": "your_namespace:your_spawn_rule_id" }, "conditions": { "minecraft:biome_filter": { "test": "minecraft:any", "operator": "or", "conditions": [ { "operator": "equals", "value": "monster" }, { "operator": "equals", "value": "beach" } ] } }, "pools": [ { "pool": "animal", "spawn_limit": 10, "entities": [ { "entity": "minecraft:pig", "weight": 1 } ] } ] } ``` -------------------------------- ### Volume Definition Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.17.0.0/1.17.0.2/Volumes.html An example of a volume definition, showcasing the inclusion of bounds and fog components. ```APIDOC minecraft:volume: description: identifier: your_custom_namespace:sample_volume components: minecraft:bounds: min: [-50, 0, -50] max: [50, 256, 50] minecraft:fog: fog_identifier: minecraft:fog_savanna priority: 1 ``` -------------------------------- ### Minecraft Volume Example Source: https://github.com/bedrock-dot-dev/docs/blob/master/1.18.0.0/1.18.10.4/Volumes.html An example demonstrating the creation of a Minecraft volume with bounds and fog components. This illustrates how to define a custom volume with specific properties. ```APIDOC { "format_version": "1.17.0", "minecraft:volume": { "description": { "identifier": "your_custom_namespace:sample_volume" }, "components": { "minecraft:bounds": { "min": [-50, 0, -50], "max": [50, 256, 50] }, "minecraft:fog": { "fog_identifier": "minecraft:fog_savanna", "priority": 1 } } } } ```