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

46 lines
1.3 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": "Specifies how much life an entity has when spawned.",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Health",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"required": [],
"properties": {
2024-02-17 15:36:10 +05:00
"min": {
"type": "integer",
"description": "The minimum starting health an entity has.",
"title": "Minimum"
},
2021-10-11 18:10:42 +02:00
"max": {
"type": "integer",
"description": "The maximum starting health an entity has.",
2021-10-11 18:10:42 +02:00
"title": "Maximum"
},
2021-10-08 12:59:03 +02:00
"value": {
"description": "The amount of health an entity to start with by default.",
2021-10-08 12:59:03 +02:00
"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",
2022-07-22 19:41:04 +02:00
"description": "The minimum amount of health this mob could have.",
"type": "integer"
2021-10-08 12:59:03 +02:00
},
"range_max": {
"title": "Range Maximum",
2022-07-22 19:41:04 +02:00
"description": "The maximum amount of health this mob could have.",
"type": "integer"
2021-10-08 12:59:03 +02:00
}
}
}
]
}
2021-10-11 18:10:42 +02:00
},
"examples": [{ "value": 1, "max": 1 }]
2021-10-08 12:59:03 +02:00
}