From 72ba29ebbe6aead7e749ed25ce97da45d3463ced Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Thu, 3 Jun 2021 16:12:39 +0200 Subject: [PATCH] Updated --- .../1.8.0/components/minecraft.health.json | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/source/behavior/entities/1.8.0/components/minecraft.health.json b/source/behavior/entities/1.8.0/components/minecraft.health.json index b3ed73db..b698cc4d 100644 --- a/source/behavior/entities/1.8.0/components/minecraft.health.json +++ b/source/behavior/entities/1.8.0/components/minecraft.health.json @@ -5,9 +5,32 @@ "title": "Health 1.8.0", "additionalProperties": false, "required": [], + "dependencies": { "max": ["value"] }, "properties": { - "value": { "type": "integer", "description": "Current health of the entity", "title": "Value" }, - "max": { "type": "integer", "description": "The maximum health the entity can heal", "title": "Maximum" } - }, - "dependencies": { "max": ["value"] } + "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": "UNDOCUMANTED", + "type": "number" + }, + "range_max": { + "title": "Range maximum", + "description": "UNDOCUMANTED", + "type": "number" + } + } + } + ] + } + } }