From a63abe59e6162163ef72ad0b6408b49dbcf53a33 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Sat, 25 May 2024 14:17:36 +0500 Subject: [PATCH] - Additional block custom component stuff --- .../blocks/format/components/entity_fall_on.json | 15 +++++++++++++++ .../behavior/blocks/format/components/tick.json | 15 +++++++++++++++ .../behavior/blocks/format/minecraft.block.json | 2 ++ .../blocks/format/triggers/queued_ticking.json | 4 ++-- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 source/behavior/blocks/format/components/entity_fall_on.json create mode 100644 source/behavior/blocks/format/components/tick.json diff --git a/source/behavior/blocks/format/components/entity_fall_on.json b/source/behavior/blocks/format/components/entity_fall_on.json new file mode 100644 index 00000000..ba127387 --- /dev/null +++ b/source/behavior/blocks/format/components/entity_fall_on.json @@ -0,0 +1,15 @@ +{ + "$id": "blockception.minecraft.behavior.blocks.minecraft.entity_fall_on", + "title": "Entity Fall On", + "description": "Required component to use the custom component `onEntityFallOn`.", + "type": "object", + "additionalProperties": false, + "required": [ ], + "properties": { + "min_fall_distance": { + "title": "Min Fall Distance", + "description": "Sets the minimum fall distance required to trigger the custom component.", + "type": "number" + } + } +} diff --git a/source/behavior/blocks/format/components/tick.json b/source/behavior/blocks/format/components/tick.json new file mode 100644 index 00000000..17ddc0cb --- /dev/null +++ b/source/behavior/blocks/format/components/tick.json @@ -0,0 +1,15 @@ +{ + "$id": "blockception.minecraft.behavior.blocks.minecraft.tick", + "title": "Tick", + "description": "Describes the component that will trigger an even at a regular interval between two values.", + "type": "object", + "additionalProperties": false, + "properties": { + "looping": { "type": "boolean", "default": true, "description": "Does the event loop.", "title": "Looping" }, + "interval_range": { + "type": "array", + "description": "The Range between which the component will trigger his event.", + "title": "Interval Range" + } + } +} diff --git a/source/behavior/blocks/format/minecraft.block.json b/source/behavior/blocks/format/minecraft.block.json index 1e77ee01..e2b50c8a 100644 --- a/source/behavior/blocks/format/minecraft.block.json +++ b/source/behavior/blocks/format/minecraft.block.json @@ -32,6 +32,8 @@ "minecraft:selection_box": { "$ref": "./components/selection_box.json" }, "minecraft:transformation": { "$ref": "./components/transformation.json" }, "minecraft:custom_components": { "$ref": "./components/custom_components.json" }, + "minecraft:tick": { "$ref": "./components/tick.json" }, + "minecraft:entity_fall_on": { "$ref": "./components/entity_fall_on.json" }, //Triggers "minecraft:on_fall_on": { "$ref": "./triggers/on_fall_on.json" }, diff --git a/source/behavior/blocks/format/triggers/queued_ticking.json b/source/behavior/blocks/format/triggers/queued_ticking.json index a1a38ea2..d43bbd17 100644 --- a/source/behavior/blocks/format/triggers/queued_ticking.json +++ b/source/behavior/blocks/format/triggers/queued_ticking.json @@ -1,6 +1,6 @@ { - "$id": "blockception.minecraft.behavior.blocks.minecraft.random_ticking", - "title": "Random Ticking", + "$id": "blockception.minecraft.behavior.blocks.minecraft.queued_ticking", + "title": "Queued Ticking", "description": "[Experimental] Describes the component that will trigger an even at a regular interval between two values.", "type": "object", "additionalProperties": false,