Flattened spawn rules
This commit is contained in:
@@ -2,14 +2,82 @@
|
||||
"$id": "blockception.minecraft.behavior.spawn_rules",
|
||||
"examples": [
|
||||
{
|
||||
"format_version": "1.10.0",
|
||||
"format_version": "1.17.0",
|
||||
"minecraft:spawn_rules": { "description": { "identifier": "minecraft:entity", "population_control": "ambient" }, "conditions": [{}] }
|
||||
}
|
||||
],
|
||||
"allOf": [
|
||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, "then": { "$ref": "./1.8.0/spawn_rules.json" } },
|
||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.11.0" } } }, "then": { "$ref": "./1.11.0/spawn_rules.json" } },
|
||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.17.0" } } }, "then": { "$ref": "./1.17.0/spawn_rules.json" } },
|
||||
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
|
||||
]
|
||||
"type": "object",
|
||||
"title": "Spawn Rules",
|
||||
"description": "Data-Driven spawning allows you to adjust the spawn conditions of mobs",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version", "minecraft:spawn_rules"],
|
||||
"properties": {
|
||||
"format_version": { "$ref": "../../general/format_version.json" },
|
||||
"minecraft:spawn_rules": {
|
||||
"type": "object",
|
||||
"title": "Spawn Rules",
|
||||
"description": "Data-Driven spawning allows you to adjust the spawn conditions of mobs",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "object",
|
||||
"title": "Description",
|
||||
"description": "The descripton of to which entity this spawn rule belongs",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"additionalProperties": false,
|
||||
"required": ["identifier", "population_control"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The entity identifier this spawn rule will apply to, entity must exist",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"$ref": "../../../general/entity/identifier.json"
|
||||
},
|
||||
"population_control": {
|
||||
"type": "string",
|
||||
"title": "Population Control",
|
||||
"description": "Setting an entity to a pool it will spawn as long as that pool hasn't reached the spawn limit.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"enum": ["ambient", "animal", "water_animal", "monster", "cat", "pillager"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"conditions": {
|
||||
"type": "array",
|
||||
"title": "Conditions",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"items": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"title": "Condition",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"properties": {
|
||||
"minecraft:biome_filter": { "$ref": "./components/minecraft.biome_filter.json" },
|
||||
"minecraft:brightness_filter": { "$ref": "./components/minecraft.brightness_filter.json" },
|
||||
"minecraft:density_limit": { "$ref": "./components/minecraft.density_limit.json" },
|
||||
"minecraft:difficulty_filter": { "$ref": "./components/minecraft.difficulty_filter.json" },
|
||||
"minecraft:delay_filter": { "$ref": "./components/minecraft.delay_filter.json" },
|
||||
"minecraft:distance_filter": { "$ref": "./components/minecraft.distance_filter.json" },
|
||||
"minecraft:height_filter": { "$ref": "./components/minecraft.height_filter.json" },
|
||||
"minecraft:herd": { "$ref": "./components/minecraft.herd.json" },
|
||||
"minecraft:player_in_village_filter": { "$ref": "./components/minecraft.player_in_village_filter.json" },
|
||||
"minecraft:permute_type": { "$ref": "./components/minecraft.permute_type.json" },
|
||||
"minecraft:mob_event_filter": { "$ref": "./components/minecraft.mob_event_filter.json" },
|
||||
"minecraft:spawn_event": { "$ref": "./components/minecraft.spawn_event.json" },
|
||||
"minecraft:spawns_on_block_filter": { "$ref": "./components/minecraft.spawns_on_block_filter.json" },
|
||||
"minecraft:spawns_on_block_prevented_filter": { "$ref": "./components/minecraft.spawns_on_block_prevented_filter.json" },
|
||||
"minecraft:spawns_lava": { "$ref": "./components/minecraft.spawns_lava.json" },
|
||||
"minecraft:spawns_on_surface": { "$ref": "./components/minecraft.spawns_on_surface.json" },
|
||||
"minecraft:spawns_underground": { "$ref": "./components/minecraft.spawns_underground.json" },
|
||||
"minecraft:spawns_underwater": { "$ref": "./components/minecraft.spawns_underwater.json" },
|
||||
"minecraft:weight": { "$ref": "./components/minecraft.weight.json" },
|
||||
"minecraft:world_age_filter": { "$ref": "./components/minecraft.world_age_filter.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user