Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/healable.json
Xterionix 822ed538f9 Some more misc fixes (#295)
* - Add mob effects enum

* - Add biome and biome tags to enum

* - Fix feature rules only showing with 1.13.0 format version

* - Replace 1.20.41 -> 1.20.80
- Make certain format versions restricted to 1.10.0

* - Remove example stick (having this here was annoying)

* - Fix

* - Remove empty sounds example

* - Misc fixes for entity components
2024-06-28 21:06:53 +02:00

89 lines
2.3 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.healable",
"description": "Defines the interactions with this entity for healing it.",
"type": "object",
"title": "Healable",
"additionalProperties": false,
"required": [],
"definitions": {
"effect": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Effect name.",
"$ref": "../../../../general/vanilla/effect.json",
"type": "string"
},
"duration": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The duration of the effect."
},
"amplifier": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The amplifier of the effect."
}
}
}
},
"properties": {
"filters": {
"$ref": "../../filters/filters.json"
},
"force_use": {
"type": "boolean",
"default": false,
"description": "Determines if item can be used regardless of entity being at full health.",
"title": "Force Use"
},
"items": {
"description": "The array of items that can be used to heal this entity.",
"title": "Items",
"type": "array",
"items": {
"type": "object",
"properties": {
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filter group that defines the conditions for using this item to heal the entity."
},
"heal_amount": {
"type": "integer",
"default": 1,
"description": "The amount of health this entity gains when fed this item.",
"title": "Heal Amount"
},
"item": {
"$ref": "../../../../general/item/descriptor.json",
"description": "Item that can be used to heal this entity.",
"title": "Item"
},
"effects": {
"oneOf": [
{
"$ref": "#/definitions/effect"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/effect"
}
}
]
}
}
}
}
},
"examples": [
{
"force_use": false,
"items": []
}
]
}