Loosen "y_rotation_offset" type (#263)

This commit is contained in:
QuazChick
2024-04-01 09:56:19 +01:00
committed by GitHub
parent 55d6a6bd10
commit b3ec07b419

View File

@@ -4,27 +4,25 @@
"description": "Contains information about the player's rotation when the block was placed.", "description": "Contains information about the player's rotation when the block was placed.",
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"required": [ "required": ["enabled_states"],
"enabled_states"
],
"properties": { "properties": {
"enabled_states": { "enabled_states": {
"title": "Enabled States", "title": "Enabled States",
"description": "Block states you wish to enable", "description": "Block states you wish to enable",
"type": "array", "type": "array",
"maxItems": 2, "uniqueItems": true,
"minItems": 1, "minItems": 1,
"items": { "items": {
"enum": [ "enum": ["minecraft:cardinal_direction", "minecraft:facing_direction"]
"minecraft:cardinal_direction",
"minecraft:facing_direction"
]
} }
}, },
"y_rotation_offset": { "y_rotation_offset": {
"title": "Y Rotation Offset", "title": "Y Rotation Offset",
"description": "This rotation offset only applies to the horizontal state values", "description": "This rotation offset only applies to the horizontal state values",
"enum": [0, 90, 180, 270, -90, -180, -270] "type": "number",
"multipleOf": 90,
"default": 0,
"examples": [90, 180, 270, -90, -180, -270]
} }
} }
} }