From 4778547e37cb7c3c60a7285d7612014f1b2b50bd Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Wed, 21 Feb 2024 23:17:56 +0500 Subject: [PATCH] Update can fly (#218) * - Add min to health * - Update timer flag to match sniffer.json * - Update can_fly * - Remove load on low memory --- .../entities/format/components/can_fly.json | 23 +++++++++---------- source/resource/sounds/sound_definitions.json | 7 +----- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/source/behavior/entities/format/components/can_fly.json b/source/behavior/entities/format/components/can_fly.json index d5b5cf74..c6e4b0ea 100644 --- a/source/behavior/entities/format/components/can_fly.json +++ b/source/behavior/entities/format/components/can_fly.json @@ -1,21 +1,20 @@ { "$id": "blockception.minecraft.behavior.entities.minecraft.can_fly", - "type": "object", "title": "Can Fly", - "additionalProperties": false, "description": "Marks the entity as being able to fly, the pathfinder won't be restricted to paths where a solid block is required underneath it.", "required": [], - "properties": { - "value": { - "type": "boolean", - "default": true, - "description": "Marks the entity as being able to fly, the pathfinder won't be restricted to paths where a solid block is required underneath it.", - "title": "Value" - } - }, - "examples": [ + "anyOf": [ { - "value": true + "type":"object", + "additionalProperties": false + }, + { + "type": "boolean", + "default": false } + ], + "examples": [ + true, + false ] } diff --git a/source/resource/sounds/sound_definitions.json b/source/resource/sounds/sound_definitions.json index 20170c5b..33c9f373 100644 --- a/source/resource/sounds/sound_definitions.json +++ b/source/resource/sounds/sound_definitions.json @@ -49,7 +49,7 @@ "additionalProperties": false, "type": "object", "required": ["name"], - "examples": [{ "load_on_low_memory": false, "name": "sounds/fx/example" }], + "examples": [{ "name": "sounds/fx/example" }], "properties": { "is3D": { "description": "UNDOCUMENTED.", @@ -59,11 +59,6 @@ }, "pitch": { "description": "The pitch of the audio, 1 is nomial.", "type": "number", "minimum": 0, "maximum": 2, "title": "Pitch" }, "volume": { "description": "The volume of the audio, 1 is nomial.", "type": "number", "minimum": 0, "title": "Volume" }, - "load_on_low_memory": { - "type": "boolean", - "description": "Marks if this audio should be loaded or not on low memory.", - "title": "Load On Low Memory" - }, "stream": { "description": "If marked true then minecraft will stream the audio.", "type": "boolean", "title": "Stream" }, "name": { "$id": "#/Sound/sounds/stringItem",