Block traits (#227)

* - Spawn category

* - Block traits
This commit is contained in:
Xterionix
2024-03-18 23:58:22 +05:00
committed by GitHub
parent f95ee61ad5
commit 9ea6077e4e
3 changed files with 70 additions and 0 deletions

View File

@@ -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]
}
}
}

View File

@@ -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"
]
}
}
}
}