2021-10-21 16:39:38 +02:00
|
|
|
{
|
2021-10-21 16:43:14 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.spawn_rules.minecraft.height_filter",
|
|
|
|
|
"title": "Height Filter",
|
2022-10-01 23:03:45 +02:00
|
|
|
"description": "This component allows players to determine the herd size of animals.",
|
2021-10-21 16:39:38 +02:00
|
|
|
"definitions": {
|
|
|
|
|
"herd": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Herd",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "Herd.",
|
2021-10-21 16:39:38 +02:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2022-10-01 23:03:45 +02:00
|
|
|
"initial_event": {
|
|
|
|
|
"title": "Initial Event",
|
2024-03-29 18:40:33 +05:00
|
|
|
"description": "Runs an event on the first entities in a group.",
|
2022-10-01 23:03:45 +02:00
|
|
|
"$comment": "UNDOCUMENTED",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"initial_event_count": {
|
|
|
|
|
"title": "Initial Event Count",
|
2024-03-29 18:40:33 +05:00
|
|
|
"description": "The number of entities that \"initial_event\" should trigger on.",
|
2022-10-01 23:03:45 +02:00
|
|
|
"$comment": "UNDOCUMENTED",
|
2024-03-29 18:40:33 +05:00
|
|
|
"type": "integer",
|
|
|
|
|
"default": 0
|
2022-10-01 23:03:45 +02:00
|
|
|
},
|
|
|
|
|
"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.",
|
2024-03-29 18:40:33 +05:00
|
|
|
"title": "Maximum Size",
|
|
|
|
|
"maximum": 8
|
2022-10-01 23:03:45 +02:00
|
|
|
},
|
|
|
|
|
"event": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "This is an event that can be triggered from spawning.",
|
|
|
|
|
"title": "Event"
|
|
|
|
|
},
|
2021-10-21 16:39:38 +02:00
|
|
|
"event_skip_count": {
|
|
|
|
|
"type": "integer",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "This is the number of mobs spawned before the specified event is triggered.",
|
2024-03-29 18:40:33 +05:00
|
|
|
"title": "Event Skip Count",
|
|
|
|
|
"default": 0
|
2021-10-21 16:39:38 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"oneOf": [
|
|
|
|
|
{ "type": "object", "$ref": "#/definitions/herd" },
|
|
|
|
|
{ "type": "array", "items": { "$ref": "#/definitions/herd" } }
|
|
|
|
|
]
|
|
|
|
|
}
|