From b3ec07b41948bd1f13dcc8c1f64b249ab417ae11 Mon Sep 17 00:00:00 2001 From: QuazChick <79767058+QuazChick@users.noreply.github.com> Date: Mon, 1 Apr 2024 09:56:19 +0100 Subject: [PATCH] Loosen "y_rotation_offset" type (#263) --- .../format/traits/placement_direction.json | 54 +++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/source/behavior/blocks/format/traits/placement_direction.json b/source/behavior/blocks/format/traits/placement_direction.json index c6a57399..bfd5bb12 100644 --- a/source/behavior/blocks/format/traits/placement_direction.json +++ b/source/behavior/blocks/format/traits/placement_direction.json @@ -1,30 +1,28 @@ { - "$id": "blockception.minecraft.behavior.blocks.traits.minecraft.placement_direction", - "title": "Placement Direction", - "description": "Contains information about the player's rotation when the block was placed.", - "additionalProperties": false, - "type": "object", - "required": [ - "enabled_states" - ], - "properties": { - "enabled_states": { - "title": "Enabled States", - "description": "Block states you wish to enable", - "type": "array", - "maxItems": 2, - "minItems": 1, - "items": { - "enum": [ - "minecraft:cardinal_direction", - "minecraft:facing_direction" - ] - } - }, - "y_rotation_offset": { - "title": "Y Rotation Offset", - "description": "This rotation offset only applies to the horizontal state values", - "enum": [0, 90, 180, 270, -90, -180, -270] - } + "$id": "blockception.minecraft.behavior.blocks.traits.minecraft.placement_direction", + "title": "Placement Direction", + "description": "Contains information about the player's rotation when the block was placed.", + "additionalProperties": false, + "type": "object", + "required": ["enabled_states"], + "properties": { + "enabled_states": { + "title": "Enabled States", + "description": "Block states you wish to enable", + "type": "array", + "uniqueItems": true, + "minItems": 1, + "items": { + "enum": ["minecraft:cardinal_direction", "minecraft:facing_direction"] + } + }, + "y_rotation_offset": { + "title": "Y Rotation Offset", + "description": "This rotation offset only applies to the horizontal state values", + "type": "number", + "multipleOf": 90, + "default": 0, + "examples": [90, 180, 270, -90, -180, -270] } -} \ No newline at end of file + } +}