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

97 lines
2.5 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.healable",
2021-10-08 12:59:03 +02:00
"description": "Defines the interactions with this entity for healing it.",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Healable",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"required": [],
"definitions": {
"effect": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Effect name.",
"$ref": "../../../../general/vanilla/effect.json",
"type": "string"
},
"duration": {
"title": "Duration",
"anyOf": [
{
"type": "integer",
"default": 1,
"minimum": 0
},
{
"const": "infinite"
}
],
"description": "The duration of the effect."
},
"amplifier": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The amplifier of the effect."
}
}
}
},
2021-10-08 12:59:03 +02:00
"properties": {
2021-10-11 18:10:42 +02:00
"filters": {
"$ref": "../../filters/filters.json"
},
2021-10-08 12:59:03 +02:00
"force_use": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "Determines if item can be used regardless of entity being at full health.",
2021-10-08 12:59:03 +02:00
"title": "Force Use"
},
"items": {
2022-07-22 19:41:04 +02:00
"description": "The array of items that can be used to heal this entity.",
2021-10-08 12:59:03 +02:00
"title": "Items",
"type": "array",
"items": {
"type": "object",
"properties": {
"filters": {
"$ref": "../../filters/filters.json",
2022-07-22 19:41:04 +02:00
"description": "The filter group that defines the conditions for using this item to heal the entity."
2021-10-08 12:59:03 +02:00
},
"heal_amount": {
"type": "integer",
"default": 1,
2022-07-22 19:41:04 +02:00
"description": "The amount of health this entity gains when fed this item.",
2021-10-08 12:59:03 +02:00
"title": "Heal Amount"
},
2021-10-11 18:10:42 +02:00
"item": {
"$ref": "../../../../general/item/descriptor.json",
"description": "Item that can be used to heal this entity.",
2021-10-11 18:10:42 +02:00
"title": "Item"
},
"effects": {
"oneOf": [
{
"$ref": "#/definitions/effect"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/effect"
}
}
]
2021-10-11 18:10:42 +02:00
}
2021-10-08 12:59:03 +02:00
}
}
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"force_use": false,
"items": []
}
]
2021-10-08 12:59:03 +02:00
}