Files
minecraft-bedrock-json-schemas/resource/blocks.json
2021-02-10 02:07:15 +01:00

69 lines
2.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.block.json",
"type": "object",
"title": "Blocks",
"description": "The minecraft block definition file",
"definitions": {
"texture": {
"oneOf": [
{ "type": "string" },
{
"additionalProperties": false,
"type": "object",
"properties": {
"down": { "type": "string", "pattern": "^[\\w_\\-]+$" },
"up": { "type": "string", "pattern": "^[\\w_\\-]+$" },
"side": { "type": "string", "pattern": "^[\\w_\\-]+$" },
"south": { "type": "string", "pattern": "^[\\w_\\-]+$" },
"north": { "type": "string", "pattern": "^[\\w_\\-]+$" },
"west": { "type": "string", "pattern": "^[\\w_\\-]+$" },
"east": { "type": "string", "pattern": "^[\\w_\\-]+$" }
}
}
]
}
},
"propertyNames": { "pattern": "^[\\w_\\-:]+$" },
"properties": {
"format_version": {
"type": "array",
"items": [{ "type": "integer" }, { "type": "integer" }, { "type": "integer" }],
"description": "TODO description",
"title": "TODO title"
}
},
"additionalProperties": {
"additionalProperties": false,
"title": "Block definition",
"description": "TODO",
"type": "object",
"properties": {
"brightness_gamma": { "type": "number", "title": "Brightness gamma", "description": "TODO" },
"carried_textures": { "$ref": "#/definitions/texture", "title": "Carried textures", "description": "TODO" },
"isotropic": {
"title": "Isotropic",
"description": "TODO",
"oneOf": [
{ "type": "boolean" },
{
"additionalProperties": false,
"type": "object",
"properties": {
"down": { "type": "boolean" },
"up": { "type": "boolean" },
"side": { "type": "boolean" },
"south": { "type": "boolean" },
"north": { "type": "boolean" },
"west": { "type": "boolean" },
"east": { "type": "boolean" }
}
}
]
},
"sound": { "type": "string", "title": "Sound", "description": "TODO" },
"textures": { "$ref": "#/definitions/texture", "title": "Sound", "description": "Textures" }
}
}
}