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

@@ -43,6 +43,16 @@
"minecraft:queued_ticking": { "$ref": "./triggers/queued_ticking.json" },
"minecraft:random_ticking": { "$ref": "./triggers/random_ticking.json" }
}
},
"traits_ref": {
"type": "object",
"title": "Trait",
"description": "A shortcut for creators to use Vanilla block states without needing to define and manage a series of events or triggers on custom blocks",
"additionalProperties": false,
"properties": {
"minecraft:placement_position": { "$ref": "./traits/placement_position.json" },
"minecraft:placement_direction": { "$ref": "./traits/placement_direction.json" }
}
}
},
"properties": {
@@ -238,6 +248,11 @@
{ "type": "object" }
]
}
},
"traits": {
"type": "object",
"title": "Trait",
"$ref": "#/definitions/traits_ref"
}
}
},