33 lines
1.0 KiB
JSON
33 lines
1.0 KiB
JSON
{
|
|
"$id": "blockception.minecraft.block.reference",
|
|
"description": "A minecraft block reference",
|
|
"examples": ["namespace:block", { "name": "namespace:block" }],
|
|
"title": "Block Reference",
|
|
"oneOf": [
|
|
{ "type": "string", "$ref": "./identifier.json" },
|
|
{
|
|
"title": "Block Reference",
|
|
"description": "",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": { "type": "string", "$ref": "./identifier.json" },
|
|
"states": {
|
|
"title": "States",
|
|
"description": "",
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"pattern": "\\w*:?\\w+"
|
|
},
|
|
"example": [{ "property": "value" }],
|
|
"additionalProperties": {
|
|
"type": ["boolean", "integer", "string"],
|
|
"title": "State Value",
|
|
"description": "The key of property is the name of the block state/property, the value must be the same as the block properties accepted values"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|