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

74 lines
2.5 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
2021-11-20 11:30:59 +01:00
"$schema": "http://json-schema.org/draft-07/schema",
2021-06-06 10:07:19 +00:00
"$id": "blockception.minecraft.block.json",
"type": "object",
"title": "Blocks",
2022-07-22 19:41:04 +02:00
"description": "The minecraft block definition file.",
2021-06-06 10:07:19 +00:00
"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_\\-]+$" }
}
}
]
}
},
2021-10-21 16:04:12 +02:00
"propertyNames": { "pattern": "^[\\w_\\-:\\.]+$" },
2021-06-06 10:07:19 +00:00
"properties": {
2022-03-27 14:12:24 +02:00
"format_version": { "$ref": "../general/format_version.json" }
2021-06-06 10:07:19 +00:00
},
"additionalProperties": {
"additionalProperties": false,
"title": "Block",
2022-07-22 19:41:04 +02:00
"description": "Block texture definition.",
2021-06-06 10:07:19 +00:00
"type": "object",
"properties": {
2021-07-01 16:35:56 +02:00
"brightness_gamma": {
"type": "number",
"title": "Brightness Gamma",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2021-07-01 16:35:56 +02:00
"$comment": "UNDOCUMENTED"
},
"carried_textures": {
"$ref": "#/definitions/texture",
"title": "Carried Textures",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2021-07-01 16:35:56 +02:00
"$comment": "UNDOCUMENTED"
},
2021-06-06 10:07:19 +00:00
"isotropic": {
"title": "Isotropic",
2022-07-22 19:41:04 +02:00
"description": "Marks if this block is isotropic or not, or which side are.",
2021-06-06 10:07:19 +00:00
"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" }
}
}
]
},
2022-07-22 19:41:04 +02:00
"sound": { "type": "string", "title": "Sound", "description": "The sound definition of this block." },
"textures": { "$ref": "#/definitions/texture", "title": "Sound", "description": "Textures." }
2021-06-06 10:07:19 +00:00
}
}
}