{
   "format_version":"1.16.100",
   "minecraft:item":{
      "description":{
         "identifier":"vatonage:leafaxe",
         "category":"equipment"
      },
      "components":{
         "minecraft:hand_equipped":true,
         "minecraft:max_stack_size":1,
         "minecraft:display_name":{
            "value":"Leafaxe"
         },
         "minecraft:icon":{
            "texture":"leafaxe"
         },
         "minecraft:creative_category":{
            "parent":"itemGroup.name.axe"
         },
         "minecraft:weapon":{
            "on_hurt_entity":{
               "event":"effect"
            }
         },
         "minecraft:damage":6,
         "minecraft:enchantable":{
            "slot":"pickaxe",
            "value":5
         },
         "minecraft:can_destroy_in_creative":true,
         "minecraft:durability":{
            "max_durability":150
         },
         "minecraft:repairable":{
            "repair_items":[
               {
                  "repair_amount":100,
                  "items":[
                     "vatonage:ironleaf"
                  ]
               }
            ]
         },
         "minecraft:digger":{
            "use_efficiency":true,
            "on_dig":{
               "event":"break"
            },
            "destroy_speeds":[
               {
                  "block":"minecraft:log",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:log2",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:planks",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               },
               {
                  "block":"minecraft:crafting_table",
                  "speed":12,
                  "on_dig":{
                     "event":"break"
                  }
               }
            ]
         }
      },
      "events":{
         "effect":{
            "damage":{
               "type":"magic",
               "amount":1,
               "target":"self"
            }
         },
         "break":{
            "damage":{
               "type":"magic",
               "amount":1,
               "target":"self"
            },
            "run_command":{
               "command":[
                  "function leafaxe"
               ],
               "target":"self"
            }
         }
      }
   }
}