Some checks failed
🖥️ Compress Json Schemas / 🖥️ Compress Schemas (push) Has been cancelled
PR / 🛠️ Build & 🔍 Lint Check (push) Has been cancelled
PR / 📋 Unit Test macOS-latest (push) Has been cancelled
PR / 📋 Unit Test ubuntu-latest (push) Has been cancelled
PR / 📋 Unit Test windows-latest (push) Has been cancelled
101 lines
4.2 KiB
JSON
Generated
101 lines
4.2 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.block.json",
|
|
"type": "object",
|
|
"title": "方块",
|
|
"description": "我的世界方块定义文件。",
|
|
"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_\\-]+$" }
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"A": {
|
|
"title": "格式版本",
|
|
"description": "一个版本号,用于告诉我的世界在读取此文件时应该期望什么类型的数据格式。",
|
|
"pattern": "^([1-9]+)\\.([0-9]+)\\.([0-9]+)$",
|
|
"type": "string",
|
|
"default": "1.21.60",
|
|
"examples": ["1.21.50", "1.20.80", "1.20.40", "1.19.0", "1.12.0", "1.10.0", "1.8.0"],
|
|
"defaultSnippets": [{ "label": "New Format version", "body": "1.${1|8,10,12,17,18,19,20|}.${3|2|0|}" }]
|
|
}
|
|
},
|
|
"propertyNames": { "pattern": "^[\\w_\\-:\\.]+$" },
|
|
"properties": {
|
|
"format_version": {
|
|
"oneOf": [
|
|
{ "$ref": "#/definitions/A" },
|
|
{
|
|
"title": "格式版本",
|
|
"description": "一个版本号,用于告诉我的世界在读取此文件时应该期望什么类型的数据格式。",
|
|
"type": "array",
|
|
"default": [1, 1, 0],
|
|
"examples": [[1, 1, 0]],
|
|
"items": { "type": "integer" },
|
|
"minItems": 3,
|
|
"maxItems": 3,
|
|
"uniqueItems": false,
|
|
"defaultSnippets": [{ "label": "New Format version", "body": [1, 1, 0] }]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": {
|
|
"additionalProperties": false,
|
|
"title": "方块",
|
|
"description": "方块纹理定义。",
|
|
"type": "object",
|
|
"properties": {
|
|
"brightness_gamma": { "type": "number", "title": "亮度伽马值", "description": "指定要应用于方块纹理的伽马亮度级别。" },
|
|
"carried_textures": { "$ref": "#/definitions/texture", "title": "手持纹理", "description": "手持时显示的纹理。" },
|
|
"isotropic": {
|
|
"title": "各向同性",
|
|
"description": "标记此方块是否为各向同性,或标记哪些面是各向同性。",
|
|
"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": "声音", "description": "此方块的声音定义。" },
|
|
"textures": { "$ref": "#/definitions/texture", "title": "纹理", "description": "方块的纹理定义。" },
|
|
"client_entity": {
|
|
"title": "实体模型配置",
|
|
"description": "用于定义当前方块的实体模型与贴图等信息。",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"identifier": { "type": "string", "title": "标识符", "description": "实体模型的标识符, 对应 resourcepack/entity/ 中文件相应 identifier." },
|
|
"hand_model_use_client_entity": { "type": "boolean", "title": "特殊模型状态", "description": "手持或掉落时是否渲染为实体模型." },
|
|
"block_icon": { "type": "string", "title": "方块图标", "description": "实体方块显示的物品 icon 图标." },
|
|
"destroyed_textures": { "type": "string", "title": "破坏贴图", "description": "方块被破坏时渲染的粒子效果贴图." }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|