-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loosen "y_rotation_offset" type (#263)
- Loading branch information
Showing
1 changed file
with
26 additions
and
28 deletions.
There are no files selected for viewing
54 changes: 26 additions & 28 deletions
54
source/behavior/blocks/format/traits/placement_direction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} | ||
} | ||
} | ||
} |