{
   "format_version":"1.16.100",
   "minecraft:item":{
      "description":{
         "category":"equipment",
         "identifier":"vatonage:infinity_axe"
      },
      "components":{
         "minecraft:creative_category":{
            "parent":"itemGroup.name.sword"
         },
         "minecraft:max_stack_size":1,
         "minecraft:use_duration":2,
         "minecraft:hand_equipped":true,
         "tag:minecraft:is_axe": {},
         "minecraft:mining_speed":3,
         "minecraft:damage":80,
         "minecraft:enchantable":{
            "value":10,
            "slot":"axe"
         },
         "minecraft:icon":{
            "texture":"infinity_axe"
         },
         "minecraft:display_name":{
            "value":"§4I§cn§6f§ei§2n§ai§bt§1y §9A§dx§5e"
         },
         "minecraft:can_destroy_in_creative":false,
         "minecraft:digger": {
            "use_efficiency": true,
            "destroy_speeds": [
               {
                  "block": {
                     "tags": "q.any_tag('wood', 'pumpkin', 'plant')"
                  },
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:chest",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:melon_block",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_hyphae",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_planks",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:stripped_crimson_hyphae",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_slab",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_door",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_button",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_hyphae",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_planks",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:stripped_warped_hyphae",
                  "speed": 500,
                  "on_dig": {}
               },
               {
                  "block": "minecraft:warped_slab",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_door",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_button",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_stem",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:stripped_warped_stem",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crimson_stem",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:stripped_crimson_stem",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:bookshelf",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:crafting_table",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:lectern",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:composter",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_pressure_plate",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_standing_sign",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:cartography_table",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_trapdoor",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_stairs",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:loom",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_fence_gate",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "block": "minecraft:warped_fence",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:crimson_fence",
                  "speed": 500
               },
               {
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:crimson_fence_gate",
                  "speed": 500
               },
               {
                  "block": "minecraft:crimson_stairs",
                  "speed": 500,
                  "on_dig": {
                     "event": "use_tool"
                  }
               },
               {
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:crimson_pressure_plate",
                  "speed": 500
               },
               {
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:standing_banner",
                  "speed": 500
               },
               {
                  "block": "minecraft:wall_banner",
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "speed": 500
               },
               {
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:trapped_chest",
                  "speed": 500
               },
               {
                  "on_dig": {
                     "event": "use_tool"
                  },
                  "block": "minecraft:crimson_trapdoor",
                  "speed": 500
               }
            ],
            "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"
            }
         }
      }
   }
}