Files
minecraft-bedrock-json-schemas/source/resource/blocks.json

64 lines
2.4 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$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": [
2021-03-21 15:18:38 +01:00
{ "type": "string" },
2020-11-01 17:22:42 +01:00
{
"additionalProperties": false,
"type": "object",
"properties": {
2021-03-21 15:18:38 +01:00
"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_\\-]+$" }
2020-11-01 17:22:42 +01:00
}
}
]
}
},
2021-03-21 15:18:38 +01:00
"propertyNames": { "pattern": "^[\\w_\\-:]+$" },
2020-11-01 17:22:42 +01:00
"properties": {
2021-03-21 15:18:38 +01:00
"format_version": { "type": "array", "items": [{ "type": "integer" }, { "type": "integer" }, { "type": "integer" }], "description": "TODO description", "title": "TODO Title" }
2020-11-01 17:22:42 +01:00
},
"additionalProperties": {
"additionalProperties": false,
2021-04-04 14:00:43 +02:00
"title": "Block",
2021-04-04 14:14:02 +02:00
"description": "Block texture definition",
2020-11-01 17:22:42 +01:00
"type": "object",
"properties": {
2021-03-21 15:18:38 +01:00
"brightness_gamma": { "type": "number", "title": "Brightness Gamma", "description": "TODO" },
"carried_textures": { "$ref": "#/definitions/texture", "title": "Carried Textures", "description": "TODO" },
2020-11-01 17:22:42 +01:00
"isotropic": {
"title": "Isotropic",
2021-04-04 14:14:02 +02:00
"description": "Marks if this block is isotropic or not, or which side are",
2020-11-01 17:22:42 +01:00
"oneOf": [
2021-03-21 15:18:38 +01:00
{ "type": "boolean" },
2020-11-01 17:22:42 +01:00
{
"additionalProperties": false,
"type": "object",
"properties": {
2021-03-21 15:18:38 +01:00
"down": { "type": "boolean" },
"up": { "type": "boolean" },
"side": { "type": "boolean" },
"south": { "type": "boolean" },
"north": { "type": "boolean" },
"west": { "type": "boolean" },
"east": { "type": "boolean" }
2020-11-01 17:22:42 +01:00
}
}
]
},
2021-04-04 14:14:02 +02:00
"sound": { "type": "string", "title": "Sound", "description": "The sound definition of this block" },
2021-03-21 15:18:38 +01:00
"textures": { "$ref": "#/definitions/texture", "title": "Sound", "description": "Textures" }
2020-11-01 17:22:42 +01:00
}
}
}