{
   "format_version":"1.16.100",
   "minecraft:item":{
      "description":{
         "identifier":"vatonage:gemsmash",
         "category":"equipment"
      },
      "components":{
         "minecraft:hand_equipped":true,
         "minecraft:max_stack_size":1,
         "minecraft:display_name":{
            "value":"Gemsmash"
         },
         "minecraft:icon":{
            "texture":"gemsmash"
         },
         "minecraft:creative_category":{
            "parent":"itemGroup.name.pickaxe"
         },
         "minecraft:weapon":{
            "on_hurt_entity":{
               "event":"effect"
            }
         },
         "minecraft:damage":10,
         "minecraft:enchantable":{
            "slot":"pickaxe",
            "value":5
         },
         "minecraft:can_destroy_in_creative":true,
         "minecraft:durability":{
            "max_durability":500
         },
         "minecraft:repairable":{
            "repair_items":[
               {
                  "repair_amount":250,
                  "items":[
                     "vatonage:gemstone"
                  ]
               }
            ]
         },
         "minecraft:digger":{
            "use_efficiency":true,
            "on_dig":{
               "event":"break"
            },
            "destroy_speeds":[
               {
                  "block":{
                     "tags":"q.any_tag('stone', 'metal', 'diamond_pick_diggable')"
                  },
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:ice",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:sandstone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:netherite_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:basalt",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_basalt",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:smooth_stone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:netherrack",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:end_stone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:concrete",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:stonebrick",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:crimson_nylium",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:warped_nylium",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:quartz_ore",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:quartz_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:blackstone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_bricks",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:chiseled_polished_blackstone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:crying_obsidian",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:lodestone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:respawn_anchor",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_pressure_plate",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:furnace",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_brick_stairs",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:blackstone_stairs",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:blackstone_wall",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_brick_wall",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:cracked_polished_blackstone_bricks",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:gilded_blackstone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:blackstone_slab",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:blackstone_double_slab",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_brick_slab",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_stairs",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_brick_double_slab",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_slab",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_button",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:polished_blackstone_wall",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:light_weighted_pressure_plate",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:heavy_weighted_pressure_plate",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:hopper",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:dispenser",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:dropper",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:observer",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:enchanting_table",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:smoker",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:blast_furnace",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:white_glazed_terracotta",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:prismarine",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:anvil",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:iron_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:lapis_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:emerald_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:ancient_debris",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:chiseled_nether_bricks",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:cracked_nether_bricks",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:red_nether_brick",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:grindstone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:diamond_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:shulker_box",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:undyed_shulker_box",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:nether_gold_ore",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:red_nether_brick_stairs",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:red_sandstone",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:chain",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:end_bricks",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:coral",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:coral_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:purpur_block",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:glass",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:deepslate",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               }
            ]
         }
      },
      "events":{
         "break":{
            "damage":{
               "type":"magic",
               "amount":1,
               "target":"self"
            },
            "run_command":{
               "command":[
                  "fill ~-5 ~-5 ~-5 ~5 ~5 ~5 glass 0 replace stone",
                  "fill ~-3 ~-3 ~-3 ~3 ~3 ~3 glass 0 replace deepslate"
               ],
               "target":"self"
            }
         }
      }
   }
}