Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/tameable.json

44 lines
1.1 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.tameable",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Tameable",
2021-10-08 12:59:03 +02:00
"description": "Defines the rules for a mob to be tamed by the player.",
"required": [],
"additionalProperties": false,
"properties": {
"probability": {
"type": "number",
"default": 1,
"description": "The chance of taming the entity with each item use between 0.0 and 1.0, where 1.0 is 100%",
"minimum": 0,
"maximum": 1,
"title": "Probability"
},
2021-10-11 18:10:42 +02:00
"tame_event": {
"title": "Tame Event",
"$ref": "../types/event_object.json",
2022-07-22 19:41:04 +02:00
"description": "Event to run when this entity becomes tamed."
2021-10-11 18:10:42 +02:00
},
2021-10-08 12:59:03 +02:00
"tame_items": {
"title": "Tame Items",
2022-07-22 19:41:04 +02:00
"description": "The list of items that can be used to tame this entity.",
2021-10-08 12:59:03 +02:00
"oneOf": [
2021-10-11 18:10:42 +02:00
{
"type": "array",
"items": {
"$ref": "../../../../general/item/identifier.json"
}
},
{
"$ref": "../../../../general/item/identifier.json"
}
2021-10-08 12:59:03 +02:00
]
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"probability": 1
}
]
2021-10-08 12:59:03 +02:00
}