Added block reference
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.general.1.14.0.block_reference",
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"title": "Block Reference",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"properties": {
|
||||
"name": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Name", "$ref": "../block/identifier.json" },
|
||||
"states": {
|
||||
"type": "object",
|
||||
"propertyNames": { "pattern": "\\w*:?\\w+" },
|
||||
"additionalProperties": { "oneOf": [{ "type": "boolean" }, { "type": "integer" }, { "type": "string" }] },
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"title": "State"
|
||||
}
|
||||
}
|
||||
}
|
||||
32
source/general/block/reference.json
Normal file
32
source/general/block/reference.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user