Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/minecraft.health.json
2021-10-08 13:04:13 +02:00

40 lines
1.1 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.health",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "object",
"title": "Health",
"additionalProperties": false,
"required": [],
"dependencies": { "max": ["value"] },
"properties": {
"max": { "type": "integer", "description": "The maximum health the entity can heal", "title": "Maximum" },
"value": {
"description": "Current health of the entity",
"title": "Value",
"oneOf": [
{ "type": "integer" },
{
"type": "object",
"additionalProperties": false,
"required": ["range_min", "range_max"],
"properties": {
"range_min": {
"title": "Range Minimum",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "number"
},
"range_max": {
"title": "Range Maximum",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "number"
}
}
}
]
}
}
}