手册:Minecraft:crafting table (方块组件)/1.16.100

来自Minecraft基岩版开发Wiki

模式[编辑]

object "minecraft:crafting_table" : opt
{
    string "custom_description"
    int "grid_size"<3>
    array "crafting_tags"
    {
        string "<any array element>"
    }
}

结构[编辑]

  •  minecraft:crafting_table:根对象。
    • *custom_description:定义合成界面显示的标题。
    • *grid_size:定义合成格的尺寸,以“格”为单位。可填3。例如:当所填值为3时,合成格的尺寸为3×3。
    • *crafting_tags:定义合成配方的标签。定义的标签将用于配方JSON文件中确定该配方可用的范围。

示例[编辑]

"minecraft:crafting_table": {
  "custom_description": "Example Name",
  "grid_size": 3,
  "crafting_tags": [
    "crafting_table",
    "custom_tag"
  ]
}