Added block reference

This commit is contained in:
DaanV2
2021-10-31 15:15:11 +01:00
parent bc524e0e44
commit 2040516e58
10 changed files with 41 additions and 26 deletions

View File

@@ -7,6 +7,8 @@
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"editor.insertSpaces": true,
"prettier.printWidth": 150,
"prettier.useTabs": false,
"prettier.tabWidth": 2

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -36,7 +36,7 @@
"items": {
"title": "Block",
"description": "Tells the pathfinder which blocks to avoid when creating a path",
"$ref": "../../../../general/block/identifier.json"
"$ref": "../../../../general/block/reference.json"
}
},
"can_breach": {

View File

@@ -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"
}
}
}

View 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"
}
}
}
}
]
}