手冊: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"
  ]
}