From c15d13596023c45eee1b58a26c0ac6846c5cb024 Mon Sep 17 00:00:00 2001 From: Smell of curry <75345244+smell-of-curry@users.noreply.github.com> Date: Thu, 11 Dec 2025 15:32:05 -0500 Subject: [PATCH 1/2] Add support for `minecraft:support` Source of truth: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/blockreference/examples/blockcomponents/minecraftblock_support --- .../blocks/format/components/support.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 source/behavior/blocks/format/components/support.json diff --git a/source/behavior/blocks/format/components/support.json b/source/behavior/blocks/format/components/support.json new file mode 100644 index 00000000..1b5b972b --- /dev/null +++ b/source/behavior/blocks/format/components/support.json @@ -0,0 +1,16 @@ +{ + "$id": "blockception.minecraft.behavior.blocks.minecraft.support", + "title": "Support", + "description": "Defines the support shape of the block. Currently only allows for blocks to have the same shape as a Vanilla fence and Vanilla stair. To work with custom stairs, requires the use of minecraft:vertical_half and minecraft:cardinal_direction or minecraft:facing_direction which can be set through the minecraft:placement_direction block trait. Custom blocks without this component will default to unit cube support.", + "additionalProperties": false, + "type": "object", + "required": [], + "properties": { + "shape": { + "title": "Shape", + "description": "The type of support shape for this block.", + "type": "string", + "enum": ["fence", "stair"] + } + } +} From cf0c6c0d763d36cb6182d4f7a629fd78fdbf024f Mon Sep 17 00:00:00 2001 From: Smell of curry <75345244+smell-of-curry@users.noreply.github.com> Date: Thu, 11 Dec 2025 15:33:09 -0500 Subject: [PATCH 2/2] Add 'shape' to required properties in support.json --- source/behavior/blocks/format/components/support.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/behavior/blocks/format/components/support.json b/source/behavior/blocks/format/components/support.json index 1b5b972b..f5deee49 100644 --- a/source/behavior/blocks/format/components/support.json +++ b/source/behavior/blocks/format/components/support.json @@ -4,7 +4,7 @@ "description": "Defines the support shape of the block. Currently only allows for blocks to have the same shape as a Vanilla fence and Vanilla stair. To work with custom stairs, requires the use of minecraft:vertical_half and minecraft:cardinal_direction or minecraft:facing_direction which can be set through the minecraft:placement_direction block trait. Custom blocks without this component will default to unit cube support.", "additionalProperties": false, "type": "object", - "required": [], + "required": ["shape"], "properties": { "shape": { "title": "Shape",