From beb9e2b52f7cb53b2677ec6f3af2e84568a7715a Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Sun, 30 Jul 2023 13:28:53 +0200 Subject: [PATCH] Updating block components --- .../blocks/format/components/placement_filter.json | 9 +++++++++ source/behavior/blocks/format/components/rotation.json | 6 ------ .../behavior/blocks/format/components/selection_box.json | 2 -- source/behavior/blocks/format/minecraft.block.json | 1 - 4 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 source/behavior/blocks/format/components/rotation.json diff --git a/source/behavior/blocks/format/components/placement_filter.json b/source/behavior/blocks/format/components/placement_filter.json index f7ff39f5..9fb6c4f1 100644 --- a/source/behavior/blocks/format/components/placement_filter.json +++ b/source/behavior/blocks/format/components/placement_filter.json @@ -5,7 +5,16 @@ "type": "object", "properties": { "conditions": { + "title": "Conditions", + "description": "List of conditions where the block can be placed/survive. Limited to 64 conditions. Each condition is a JSON Object that must contain at least one (and can contain both) of the parameters allowed_faces or block_filter as shown below.", + "examples": [ + { + "allowed_faces": ["up"], + "block_filter": ["grass"] + } + ], "type": "array", + "minItems": 1, "items": { "title": "Placement Filter", "description": "[Experimental]", diff --git a/source/behavior/blocks/format/components/rotation.json b/source/behavior/blocks/format/components/rotation.json deleted file mode 100644 index f0d51d24..00000000 --- a/source/behavior/blocks/format/components/rotation.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$id": "blockception.minecraft.behavior.blocks.minecraft.rotation", - "title": "Rotation", - "description": "The block's rotation around the center of the cube in degrees. The rotation order is [x, y, z]. Angles need to be in multiples of 90.", - "$ref": "../../../../general/vectors/number3.json" -} diff --git a/source/behavior/blocks/format/components/selection_box.json b/source/behavior/blocks/format/components/selection_box.json index 1e973ba7..dbdbd57e 100644 --- a/source/behavior/blocks/format/components/selection_box.json +++ b/source/behavior/blocks/format/components/selection_box.json @@ -11,7 +11,6 @@ "origin": { "title": "Origin", "default": [0, 0, 0], - "$ref": "../../../../general/vectors/number3.json", "description": "Minimal position of the bounds of the selection box. \"origin\" is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.", "type": "array", "items": [ @@ -22,7 +21,6 @@ }, "size": { "title": "Size", - "$ref": "../../../../general/vectors/number3.json", "default": [8.0, 8.0, 8.0], "description": "Size of each side of the selection box. Size is specified as [x, y, z]. \"origin\" + \"size\" must be in the range (-8, 0, -8) to (8, 16, 8), inclusive.", "type": "array", diff --git a/source/behavior/blocks/format/minecraft.block.json b/source/behavior/blocks/format/minecraft.block.json index 3dbbf51b..8cab27a5 100644 --- a/source/behavior/blocks/format/minecraft.block.json +++ b/source/behavior/blocks/format/minecraft.block.json @@ -30,7 +30,6 @@ "minecraft:material_instances": { "$ref": "./components/material_instances.json" }, "minecraft:part_visibility": { "$ref": "./components/part_visibility.json" }, "minecraft:placement_filter": { "$ref": "./components/placement_filter.json" }, - "minecraft:rotation": { "$ref": "./components/rotation.json" }, "minecraft:selection_box": { "$ref": "./components/selection_box.json" }, "minecraft:transformation": { "$ref": "./components/transformation.json" }, "minecraft:unit_cube": { "$ref": "./components/unit_cube.json" },