Files
minecraft-bedrock-json-schemas/source/general/block/reference.json
2022-07-22 19:41:04 +02:00

34 lines
1.1 KiB
JSON

{
"$id": "blockception.minecraft.block.reference",
"description": "A minecraft block reference.",
"examples": ["namespace:block", { "name": "namespace:block" }],
"title": "Block Reference",
"defaultSnippets": [{ "label": "New Identifier", "body": "$1:$2" }],
"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."
}
}
}
}
]
}