{
  "format_version": "1.20.20",
  "minecraft:item": {
    "description": {
      "identifier": "poke:radium_battleaxe",
      "menu_category": {
        "category": "equipment",
        "group": "itemGroup.name.sword"
      }
    },
    "components": {
      "minecraft:icon": {
        "texture": "poke_shade_battleaxe"
      },
      "minecraft:max_stack_size": 1,
      "minecraft:hand_equipped": true,
      "minecraft:durability": {
        "max_durability": 2250
      },
      "minecraft:damage": 20,
      "minecraft:enchantable": {
        "value": 40,
        "slot": "sword"
      },"minecraft:hover_text_color":"green",
      "minecraft:can_destroy_in_creative": false,
      "minecraft:repairable": {
        "repair_items": [
          {
            "items": [
              "poke:repair_core"
            ],
            "repair_amount": "query.max_durability"
          },
          {
            "items": [
              "poke:radium_ingot"
            ],
            "repair_amount": "query.max_durability*0.25"
          },
          {
            "items": [
              "poke:radium_nugget"
            ],
            "repair_amount": "query.max_durability*0.028"
          }
        ]
      },
      "minecraft:on_use": {
        "on_use": {
          "event": "poke:axesmash"
        }
      },
      "minecraft:weapon": {
        "on_hurt_entity": {
          "event": "poke:durability"
        }
      },
      "minecraft:cooldown": {
        "category": "poke:axe_use",
        "duration": 2.25
      },
      "tag:minecraft:is_sword": {}
    },
    "events": {
      "poke:axesmash": {
        "run_command": {
          "command": [
            "damage @e[type=!item,rm=0.5,r=8] 6 entity_attack entity @s",
            "effect @e[type=!item,rm=0.5,r=8] poison 6 2 true",
						"particle poke:battleaxe_r8p ~~~",
            "playsound poke.battleaxe @a ~~~ 0.5"
          ]
        },
        "damage": {
          "amount": 2,
          "target": "self",
          "type": "durability"
        }
      },
      "poke:durability": {
        "damage": {
          "amount": 1,
          "target": "self",
          "type": "durability"
        }
      }
    }
  }
}