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

43 lines
1.2 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.beg",
"type": "object",
"title": "Beg",
"additionalProperties": false,
"description": "Allows this mob to look at and follow the player that holds food they like.",
"required": [],
"properties": {
"priority": {
"$ref": "./types/priority.json"
},
"items": {
"type": "array",
"description": "List of items that this mob likes.",
"items": {
"type": "string",
"description": "List of items that this mob likes.",
"title": "Properties",
"$ref": "../../../../general/item/descriptor.json"
},
"title": "Properties"
},
"look_distance": {
"type": "number",
"default": 8,
"description": "Distance in blocks the mob will beg from.",
"title": "Look Distance"
},
"look_time": {
"description": "The range of time in seconds this mob will stare at the player holding a food they like, begging for it.",
"$ref": "../types/range_number_type.json",
"default": [2, 4],
"title": "Look Time"
}
},
"examples": [
{
"items": [],
"look_distance": 8
}
]
}