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

44 lines
1.2 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.health",
"description": "Sets the amount of health this mob has",
2021-10-08 12:59:03 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Health",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"required": [],
"properties": {
2021-10-11 18:10:42 +02:00
"max": {
"type": "integer",
"description": "The maximum health the entity can heal",
"title": "Maximum"
},
2021-10-08 12:59:03 +02:00
"value": {
"description": "Current health of the entity",
"title": "Value",
"oneOf": [
2021-10-13 10:41:36 +02:00
{ "type": "integer", "default": 1 },
2021-10-08 12:59:03 +02:00
{
"type": "object",
"additionalProperties": false,
"required": ["range_min", "range_max"],
"properties": {
"range_min": {
"title": "Range Minimum",
"description": "The minimum amount of health this mob could have",
2021-10-08 12:59:03 +02:00
"$comment": "UNDOCUMENTED",
"type": "number"
},
"range_max": {
"title": "Range Maximum",
"description": "The maximum amount of health this mob could have",
2021-10-08 12:59:03 +02:00
"$comment": "UNDOCUMENTED",
"type": "number"
}
}
}
]
}
2021-10-11 18:10:42 +02:00
},
2021-10-13 10:41:36 +02:00
"examples": [{ "value": 1, "max": 0 }]
2021-10-08 12:59:03 +02:00
}