-
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.
* - Spawn category * - Block traits
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$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] | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
source/behavior/blocks/format/traits/placement_position.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$id": "blockception.minecraft.behavior.blocks.traits.minecraft.placement_position", | ||
"title": "Placement Position", | ||
"description": "Contains information about where the player placed the block.", | ||
"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:block_face", | ||
"minecraft:vertical_half" | ||
] | ||
} | ||
} | ||
} | ||
} |