Skip to content

Custom_Tool_Pickaxe

small_jiu edited this page May 26, 2022 · 1 revision
{
  "main":[
    {
      "type": "item:pickaxe",
      "entries":  [
        {
          "id": "custom_pickaxe",
          "unItem": "minecraft:wooden_pickaxe",
          "tab": "redstone",
          // 可用于挖掘的工具的挖掘等级
          // 支持meta,工具类通用写法
          // "HarvestLevel": 20, //全局写法
          "HarvestLevel":  {
            "-1": 50,
            "10": 100
          },
          // 可用于挖掘的工具的挖掘速度
          // 支持meta,工具类通用写法
          // "DestroySpeed": 500, // 全局写法
          "DestroySpeed":  {
            "0": 1,
            "-1": 50,
            "10": 100
          },
          
          // 可用于挖掘的工具添加可挖掘方块
          // 注:是挖掘完成后,是否掉落的控制
          // 支持meta,工具类通用写法
          // "canHarvestBlock": "minecraft:stone@1@0", // 全局写法1,只添加一个方块
          // "canHarvestBlock": [ // 全局写法2,添加多个方块
//            "minecraft:stone@1@0",
//            "minecraft:stone@1@2",
//            "minecraft:stone@1@3"
//          ]
          "canHarvestBlock":  {
            "0":  [
              "minecraft:stone@1@0",
              "minecraft:stone@1@2",
              "minecraft:stone@1@3"
            ],
            "-1":  [
              "minecraft:stone@1@5",
              "minecraft:stone@1@6",
              "minecraft:stone@1@7"
            ],
            "10":  [
              "minecraft:stone@1@2",
              "minecraft:stone@1@4",
              "minecraft:stone@1@8",
              "minecraft:stone@1@5"
            ]
          }
        }
      ]
    }
  ]
}

Clone this wiki locally