2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.health",
|
2023-04-17 21:49:53 +02:00
|
|
|
"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",
|
2023-04-17 21:49:53 +02:00
|
|
|
"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": {
|
2023-04-17 21:49:53 +02:00
|
|
|
"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.",
|
2023-08-13 23:21:03 -07:00
|
|
|
"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.",
|
2023-08-13 23:21:03 -07:00
|
|
|
"type": "integer"
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2021-10-11 18:10:42 +02:00
|
|
|
},
|
2023-04-17 21:49:53 +02:00
|
|
|
"examples": [{ "value": 1, "max": 1 }]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|