Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/health.json
2021-10-11 18:10:42 +02:00

53 lines
1.2 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"
}
}
}
]
}
},
"examples": [
{
"max": 0
}
]
}