From 995f0550a23bfc2386f329c90df9a754acb66eb7 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:38:17 -0500 Subject: [PATCH] Add connection trait definition for blocks Defines the connection trait for blocks, including properties and required states. Source of Truth: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/blockreference/examples/traits/connection --- .../blocks/format/traits/connection.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 source/behavior/blocks/format/traits/connection.json diff --git a/source/behavior/blocks/format/traits/connection.json b/source/behavior/blocks/format/traits/connection.json new file mode 100644 index 00000000..827a9670 --- /dev/null +++ b/source/behavior/blocks/format/traits/connection.json @@ -0,0 +1,20 @@ +{ + "$id": "blockception.minecraft.behavior.blocks.traits.minecraft.connection", + "title": "Connection", + "description": "Contains information about whether the block connects to other blocks, and if so, on what faces. The values of the states will change when the block or neighboring blocks change or move.", + "additionalProperties": false, + "type": "object", + "required": ["enabled_states"], + "properties": { + "enabled_states": { + "title": "Enabled States", + "description": "Connection states you wish to enable", + "type": "array", + "uniqueItems": true, + "minItems": 1, + "items": { + "enum": ["minecraft:cardinal_connections"] + } + } + } +}