From aeae218dae7c0575586dfa36e9dc593b445949d7 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Fri, 22 Mar 2024 22:23:30 +0500 Subject: [PATCH] - Fix --- .../format/components/follow_range.json | 4 +- .../format/components/projectile.json | 38 +++---------------- 2 files changed, 8 insertions(+), 34 deletions(-) diff --git a/source/behavior/entities/format/components/follow_range.json b/source/behavior/entities/format/components/follow_range.json index c471e4af..7f9fcb6c 100644 --- a/source/behavior/entities/format/components/follow_range.json +++ b/source/behavior/entities/format/components/follow_range.json @@ -7,12 +7,12 @@ "required": [], "properties": { "value": { - "type": "number", + "type": "integer", "description": "The distance this entity can be from the target when following it", "title": "Value" }, "max": { - "type": "number", + "type": "integer", "description": "Maximum distance this entity can be from the target when following it", "title": "Max" } diff --git a/source/behavior/entities/format/components/projectile.json b/source/behavior/entities/format/components/projectile.json index 189ab4d7..6d4b0cab 100644 --- a/source/behavior/entities/format/components/projectile.json +++ b/source/behavior/entities/format/components/projectile.json @@ -196,17 +196,8 @@ "douse_fire": { "title": "Douse Fire", "description": "If the target is on fire, then douse the fire.", - "anyOf": [ - { - "type": "boolean", - "default": false - }, - { - "type": "object", - "additionalProperties": false, - "properties": {} - } - ] + "type": "boolean", + "default": false }, "freeze_on_hit": { "title": "Freeze On Hit", @@ -295,16 +286,8 @@ "catch_fire": { "title": "Catch Fire", "description": "Determines if the struck object is set on fire.", - "type": "object", - "additionalProperties": false, - "properties": { - "fire_affected_by_griefing": { - "title": "Fire Affected By Griefing", - "description": "If the griefting gamerule can affect if fire is spawned", - "type": "boolean", - "default": true - } - } + "type": "boolean", + "default": false }, "channeling": { "title": "Channeling", @@ -609,17 +592,8 @@ "teleport_owner": { "title": "Teleport Owner", "description": "Determines if the owner is transported on hit.", - "anyOf": [ - { - "type": "boolean", - "default": false - }, - { - "type": "object", - "additionalProperties": false, - "properties": {} - } - ] + "type": "boolean", + "default": false }, "thrown_potion_effect": { "title": "Thrown Potion Effect",