//bridge-file-version: #31
{
	"format_version": "1.17.0",
	"minecraft:item": {
		"description": {
			"identifier": "strat:hatchet_25_2",
			"category": "commands"
		},
		"components": {
			"minecraft:max_stack_size": 1,
			"minecraft:hand_equipped": true,
			"minecraft:durability": {
				"max_durability": 776,
				"damage_chance": {
					"min": 1,
					"max": 1
				}
			},
			"minecraft:mining_speed": 6,
			"minecraft:damage": 7,
			"minecraft:digger": {
				"use_efficiency": true,
				"destroy_speeds": [
					{
						"block": {
							"tags": "q.any_tag('wood')"
						},
						"speed": 6,
						"use_efficiency": true,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:chest",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:melon_block",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crafting_table",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:bookshelf",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:pumpkin",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:loom",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:cartography_table",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:trapped_chest",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:campfire",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:soul_campfire",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:beehive",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:bee_nest",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:jukebox",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:noteblock",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:composter",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_stem",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_hyphae",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:stripped_crimson_stem",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:stripped_crimson_hyphae",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_stem",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_hyphae",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:stripped_warped_stem",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:stripped_warped_hyphae",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_planks",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_door",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_trapdoor",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_standing_sign",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_wall_sign",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_stairs",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_fence",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_fence_gate",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_button",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_pressure_plate",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_slab",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:crimson_double_slab",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_planks",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_door",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_trapdoor",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_standing_sign",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_wall_sign",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_stairs",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_fence",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_fence_gate",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_button",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_pressure_plate",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_slab",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:warped_double_slab",
						"speed": 6,
						"on_dig": {
							"event": "hurt"
						},
						"use_efficiency": true
					},
					{
						"block": "minecraft:leaves",
						"speed": 6
					},
					{
						"block": "minecraft:leaves2",
						"speed": 6
					},
					{
						"block": "strat:maple_leaves",
						"speed": 6
					}
				],
				"on_dig": {
					"event": "hurt"
				}
			},
			"tag:minecraft:is_axe": {},
			"minecraft:icon": {
				"texture": "hatchet_25_2"
			},
			"minecraft:display_name": {
				"value": "Iron Hatchet\n§bDiamond"
			},
			"minecraft:creative_category": {
				"parent": "itemGroup.name.axe"
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "hurt_2"
				},
				"on_hit_block": {
					"event": "hurt"
				}
			}
		},
		"events": {
			"hurt": {
				"sequence": [
					{
						"condition": "query.remaining_durability == 0",
						"transform_item": {
							"transform": "strat:hatchet_25_broken"
						},
						"run_command": {
							"command": [
								"playsound random.break @a ~~~"
							],
							"target": "holder"
						}
					},
					{
						"condition": "query.remaining_durability > 0",
						"damage": {
							"type": "none",
							"amount": 1,
							"target": "self"
						}
					}
				]
			},
			"hurt_2": {
				"sequence": [
					{
						"condition": "query.remaining_durability < 2",
						"transform_item": {
							"transform": "strat:hatchet_25_broken"
						},
						"run_command": {
							"command": [
								"playsound random.break @a ~~~"
							],
							"target": "holder"
						}
					},
					{
						"condition": "query.remaining_durability > 1",
						"damage": {
							"type": "none",
							"amount": 2,
							"target": "self"
						}
					}
				]
			},
			"on_tool_used": {}
		}
	}
}