Files
minecraft-bedrock-json-schemas/source/behavior/spawn_rules/components/herd.json
2024-03-29 14:40:33 +01:00

55 lines
1.8 KiB
JSON

{
"$id": "blockception.minecraft.behavior.spawn_rules.minecraft.height_filter",
"title": "Height Filter",
"description": "This component allows players to determine the herd size of animals.",
"definitions": {
"herd": {
"type": "object",
"title": "Herd",
"description": "Herd.",
"additionalProperties": false,
"properties": {
"initial_event": {
"title": "Initial Event",
"description": "Runs an event on the first entities in a group.",
"$comment": "UNDOCUMENTED",
"type": "string"
},
"initial_event_count": {
"title": "Initial Event Count",
"description": "The number of entities that \"initial_event\" should trigger on.",
"$comment": "UNDOCUMENTED",
"type": "integer",
"default": 0
},
"min_size": {
"type": "integer",
"description": "This is the minimum number of mobs that spawn in a herd.",
"title": "Minimum Size"
},
"max_size": {
"type": "integer",
"description": "This is the maximum number of mobs that spawn in a herd.",
"title": "Maximum Size",
"maximum": 8
},
"event": {
"type": "string",
"description": "This is an event that can be triggered from spawning.",
"title": "Event"
},
"event_skip_count": {
"type": "integer",
"description": "This is the number of mobs spawned before the specified event is triggered.",
"title": "Event Skip Count",
"default": 0
}
}
}
},
"oneOf": [
{ "type": "object", "$ref": "#/definitions/herd" },
{ "type": "array", "items": { "$ref": "#/definitions/herd" } }
]
}