Files
Piotr Brzozowski dcd9877aa7 Add item_descriptor and use it in acceptable places (#115)
* Add item_descriptor and use it in acceptable places

* Rename descriptor

* Fix refs

* Fix refs

* Add descriptor to 3 more components
2022-10-01 19:34:08 +02:00

54 lines
1.5 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.snacking",
"additionalProperties": false,
"description": "Allows the mob to take a load off and snack on food that it found nearby.",
"type": "object",
"title": "Snacking",
"required": [],
"properties": {
"priority": {
"$ref": "./types/priority.json"
},
"items": {
"title": "Items",
"description": "Items that we are interested in snacking on.",
"oneOf": [
{
"type": "array",
"items": {
"$ref": "../../../../general/item/descriptor.json",
"title": "Item"
}
},
{
"$ref": "../../../../general/item/descriptor.json"
}
]
},
"snacking_cooldown": {
"type": "number",
"default": 7.5,
"description": "The cooldown time in seconds before the mob is able to snack again.",
"title": "Snacking Cooldown"
},
"snacking_cooldown_min": {
"type": "number",
"default": 0.5,
"description": "The minimum time in seconds before the mob is able to snack again.",
"title": "Snacking Cooldown Minimum"
},
"snacking_stop_chance": {
"type": "number",
"description": "This is the chance that the mob will stop snacking, from 0 to 1.",
"title": "Snacking Stop Chance"
}
},
"examples": [
{
"snacking_cooldown": 7.5,
"snacking_cooldown_min": 0.5,
"snacking_stop_chance": 0.0
}
]
}