From 804a08aa1d18860541647d0197ec6aff4a36e686 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Fri, 24 May 2024 15:34:17 +0500 Subject: [PATCH] - Custom components --- .../blocks/format/components/custom_components.json | 10 ++++++++++ source/behavior/blocks/format/minecraft.block.json | 1 + .../items/format/components/custom_components.json | 10 ++++++++++ source/behavior/items/format/minecraft.item.json | 1 + 4 files changed, 22 insertions(+) create mode 100644 source/behavior/blocks/format/components/custom_components.json create mode 100644 source/behavior/items/format/components/custom_components.json diff --git a/source/behavior/blocks/format/components/custom_components.json b/source/behavior/blocks/format/components/custom_components.json new file mode 100644 index 00000000..c51d6971 --- /dev/null +++ b/source/behavior/blocks/format/components/custom_components.json @@ -0,0 +1,10 @@ +{ + "$id": "blockception.minecraft.behavior.blocks.minecraft.custom_components", + "title": "Custom Components", + "description": "Used to register custom components.", + "additionalProperties": false, + "type": "array", + "items": { + "type": "string" + } +} \ No newline at end of file diff --git a/source/behavior/blocks/format/minecraft.block.json b/source/behavior/blocks/format/minecraft.block.json index 4fa916e1..1e77ee01 100644 --- a/source/behavior/blocks/format/minecraft.block.json +++ b/source/behavior/blocks/format/minecraft.block.json @@ -31,6 +31,7 @@ "minecraft:placement_filter": { "$ref": "./components/placement_filter.json" }, "minecraft:selection_box": { "$ref": "./components/selection_box.json" }, "minecraft:transformation": { "$ref": "./components/transformation.json" }, + "minecraft:custom_components": { "$ref": "./components/custom_components.json" }, //Triggers "minecraft:on_fall_on": { "$ref": "./triggers/on_fall_on.json" }, diff --git a/source/behavior/items/format/components/custom_components.json b/source/behavior/items/format/components/custom_components.json new file mode 100644 index 00000000..dbad60dd --- /dev/null +++ b/source/behavior/items/format/components/custom_components.json @@ -0,0 +1,10 @@ +{ + "$id": "blockception.minecraft.behavior.items.minecraft.custom_components", + "title": "Custom Components", + "description": "Used to register custom components.", + "additionalProperties": false, + "type": "array", + "items": { + "type": "string" + } +} \ No newline at end of file diff --git a/source/behavior/items/format/minecraft.item.json b/source/behavior/items/format/minecraft.item.json index 8c1f607c..382f57aa 100644 --- a/source/behavior/items/format/minecraft.item.json +++ b/source/behavior/items/format/minecraft.item.json @@ -57,6 +57,7 @@ "minecraft:block_placer": { "$ref": "./components/block_placer.json" }, "minecraft:can_destroy_in_creative": {"$ref": "./components/can_destroy_in_creative.json"}, "minecraft:cooldown": { "$ref": "./components/cooldown.json" }, + "minecraft:custom_components": { "$ref": "./components/custom_components.json" }, "minecraft:damage": {"$ref": "./components/damage.json"}, "minecraft:digger": { "$ref": "./components/digger.json" }, "minecraft:display_name": { "$ref": "./components/display_name.json" },