Added block reference
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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