{
   "format_version":"1.16.100",
   "minecraft:item":{
      "description":{
         "category":"equipment",
         "identifier":"vatonage:ultimate_pickaxe"
      },
      "components":{
         "minecraft:creative_category":{
            "parent":"itemGroup.name.sword"
         },
         "minecraft:max_stack_size":1,
         "minecraft:use_duration":2,
         "minecraft:hand_equipped":true,
         "minecraft:durability":{
            "max_durability":3000
         },
         "minecraft:repairable":{
            "repair_items":[
               {
                  "repair_amount":1000,
                  "items":[
                     "vatonage:ultimate_ingot"
                  ]
               }
            ]
         },
         "minecraft:mining_speed":3,
         "minecraft:damage":20,
         "minecraft:enchantable":{
            "value":10,
            "slot":"pickaxe"
         },
         "minecraft:icon":{
            "texture":"ultimate_pickaxe"
         },
         "minecraft:display_name":{
            "value":"Ultimate Pickaxe"
         },
         "minecraft:can_destroy_in_creative":false,
         "minecraft:digger": {
            "use_efficiency": true,
            "destroy_speeds": [
               {
                  "block": {
                     "tags": "q.any_tag('stone', 'metal', 'diamond_pick_diggable')"
                  },
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:ice",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:sandstone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:netherite_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:basalt",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_basalt",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:smooth_stone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:bedrock",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:netherrack",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:end_stone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:concrete",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:stonebrick",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_nylium",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_nylium",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:quartz_ore",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:quartz_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:blackstone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_bricks",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:chiseled_polished_blackstone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crying_obsidian",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:lodestone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:respawn_anchor",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_pressure_plate",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:furnace",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_brick_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:blackstone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:blackstone_wall",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_brick_wall",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:cracked_polished_blackstone_bricks",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:gilded_blackstone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:blackstone_slab",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:blackstone_double_slab",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_brick_slab",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_brick_double_slab",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_slab",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_button",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_blackstone_wall",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:light_weighted_pressure_plate",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:heavy_weighted_pressure_plate",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:hopper",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:dispenser",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:dropper",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:observer",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:enchanting_table",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:smoker",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:blast_furnace",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:white_glazed_terracotta",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:prismarine",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:anvil",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:iron_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:lapis_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:emerald_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:ancient_debris",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:chiseled_nether_bricks",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:cracked_nether_bricks",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:red_nether_brick",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:grindstone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:diamond_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:shulker_box",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:undyed_shulker_box",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:nether_gold_ore",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:red_nether_brick_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:red_sandstone",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:chain",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:end_bricks",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:coral",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:coral_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:purpur_block",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:purpur_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:stone_slab2"
               },
               {
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:stone_slab3"
               },
               {
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:stone_slab4"
               },
               {
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:double_stone_slab2"
               },
               {
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:double_stone_slab3"
               },
               {
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:double_stone_slab4"
               },
               {
                  "block": "minecraft:stone_brick_stairs",
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "speed": 15
               },
               {
                  "block": "minecraft:brick_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:prismarine_bricks_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:mossy_stone_brick_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:smooth_sandstone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:smooth_quartz_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:red_sandstone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:smooth_red_sandstone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:end_brick_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:nether_brick_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:deepslate",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_granite_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:quartz_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:andesite_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_andesite_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:diorite_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:polished_diorite_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:prismarine_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:mossy_cobblestone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:normal_stone_stairs",
                  "speed": 15,
                  "on_dig": {
                     "event": "use_tool"
                  }
               }
            ],
            "on_dig": {
               "event": "use_tool"
            }
         },
         "minecraft:weapon":{
            "on_hurt_entity":{
               "event":"effect"
            }
         }
      },
      "events":{
         "effect":{
            "run_command":{
               "command":[
                  "execute @s ^ ^ ^2 damage @e[r=1.5] 5 entity_attack entity @s"
               ]
            }
         },
         "use_tool": {
            "damage": {
               "type": "magic",
               "amount": 1,
               "target": "self"
            }
         }
      }
   }
}