//bridge-file-version: #40
{
	"format_version": "1.16.100",
	"minecraft:item": {
		"description": {
			"identifier": "sp:battle_axe_diamond",
			"category": "equipment"
		},
		"components": {
			"minecraft:max_stack_size": 1,
			"minecraft:hand_equipped": true,
			"minecraft:mining_speed": 1,
			"minecraft:damage": 24,
			"minecraft:enchantable": {
				"value": 25,
				"slot": "axe"
			},
			"tag:minecraft:is_axe": {},
			"minecraft:icon": {
				"texture": "battle_axe"
			},
			"minecraft:display_name": {
				"value": "§5Diamond Battle Axe"
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "dmg"
				},
				"on_not_hurt_entity": {
					"event": "dmg"
				},
				"on_hit_block": {
					"event": "dmg"
				}
			},
			"minecraft:creative_category": {
				"parent": "itemGroup.name.axe"
			},
			"minecraft:digger": {
				"use_efficiency": true,
				"destroy_speeds": [
					{
						"block": {
							"tags": "q.any_tag('wood', 'pumpkin', 'plant')"
						},
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:chest",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:bookshelf",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:melon_block",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_stem",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_stem",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_stem",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_stem",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crafting_table",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_planks",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_planks",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_stairs",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_trapdoor",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_stairs",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_trapdoor",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_door",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crimson_double_slab",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_door",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:warped_double_slab",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					},
					{
						"block": "minecraft:crafting_table",
						"speed": 40,
						"on_dig": {
							"event": "dmg"
						}
					}
				],
				"on_dig": {
					"event": "dmg"
				}
			},
			"minecraft:on_use": {
				"on_use": {
					"event": "speed"
				}
			},
			"minecraft:repairable": {
				"repair_items": [
					{
						"items": [
							"minecraft:diamond"
						],
						"repair_amount": "query.max_durability"
					}
				]
			},
			"minecraft:durability": {
				"max_durability": 4000,
				"damage_chance": {
					"min": 60,
					"max": 100
				}
			},
			"minecraft:repairable": {
				"repair_items": [
					{
						"items": [
							"minecraft:diamond_block"
						],
						"repair_amount": "query.max_durability"
					}
				]
			}
		},
		"events": {
			"speed": {
				"sequence": [
					{
						"swing": {}
					},
					{
						"run_command": {
							"command": [
								"function diamond_effects"
							]
						}
					},
					{
						"damage": {
							"type": "none",
							"amount": 1,
							"target": "self"
						}
					}
				]
			},
			"dmg": {
				"damage": {
					"type": "none",
					"amount": 1,
					"target": "self"
				}
			}
		}
	}
}