Skip to content

Commit

Permalink
Loosen "y_rotation_offset" type (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuazChick authored Apr 1, 2024
1 parent 55d6a6b commit b3ec07b
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions source/behavior/blocks/format/traits/placement_direction.json
Original file line number Diff line number Diff line change
@@ -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]
}
}
}
}

0 comments on commit b3ec07b

Please sign in to comment.