Files
minecraft-bedrock-json-schemas/source/general/block/reference.json

39 lines
1.3 KiB
JSON
Raw Normal View History

2021-10-31 15:15:11 +01:00
{
"$id": "blockception.minecraft.block.reference",
2022-07-22 19:41:04 +02:00
"description": "A minecraft block reference.",
2021-10-31 15:15:11 +01:00
"examples": ["namespace:block", { "name": "namespace:block" }],
"title": "Block Reference",
2022-02-01 18:06:14 +01:00
"defaultSnippets": [{ "label": "New Identifier", "body": "$1:$2" }],
2021-10-31 15:15:11 +01:00
"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",
2022-07-22 19:41:04 +02:00
"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."
2021-10-31 15:15:11 +01:00
}
},
"tags": {
"$ref": "../../molang/string.json",
"description": "A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.",
"examples": ["query.any_tag('wood')"]
2021-10-31 15:15:11 +01:00
}
}
}
]
}