//bridge-file-version: #65
{
	"format_version": "1.16.100",
	"minecraft:item": {
		"description": {
			"category": "equipment",
			"identifier": "sp:chainsaw"
		},
		"components": {
			"minecraft:max_stack_size": 1,
			"minecraft:hand_equipped": true,
			"minecraft:durability": {
				"max_durability": 2400,
				"damage_chance": {
					"min": 5,
					"max": 10
				}
			},
			"minecraft:mining_speed": 50,
			"minecraft:enchantable": {
				"value": 0,
				"slot": "axe"
			},
			"minecraft:digger": {
				"use_efficiency": true,
				"destroy_speeds": [
					{
						"block": {
							"tags": "q.any_tag('wood', 'pumpkin', 'plant')"
						},
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:chest",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:melon_block",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crimson_hyphae",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crimson_planks",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:stripped_crimson_hyphae",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crimson_slab",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crimson_door",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crimson_button",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_hyphae",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_planks",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:stripped_warped_hyphae",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_slab",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_door",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_button",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_stem",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:stripped_warped_stem",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crimson_stem",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:stripped_crimson_stem",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:bookshelf",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:crafting_table",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:lectern",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:composter",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_pressure_plate",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_standing_sign",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:cartography_table",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_trapdoor",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:loom",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_stairs",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_fence_gate",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"block": "minecraft:warped_fence",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"on_dig": {
							"event": "dam"
						},
						"block": "minecraft:crimson_fence",
						"speed": 50
					},
					{
						"on_dig": {
							"event": "dam"
						},
						"block": "minecraft:crimson_fence_gate",
						"speed": 50
					},
					{
						"block": "minecraft:crimson_stairs",
						"speed": 50,
						"on_dig": {
							"event": "dam"
						}
					},
					{
						"on_dig": {
							"event": "dam"
						},
						"block": "minecraft:crimson_pressure_plate",
						"speed": 50
					},
					{
						"on_dig": {
							"event": "dam"
						},
						"block": "minecraft:standing_banner",
						"speed": 50
					},
					{
						"block": "minecraft:wall_banner",
						"on_dig": {
							"event": "dam"
						},
						"speed": 50
					},
					{
						"on_dig": {
							"event": "dam"
						},
						"block": "minecraft:trapped_chest",
						"speed": 50
					},
					{
						"on_dig": {
							"event": "dam"
						},
						"block": "minecraft:crimson_trapdoor",
						"speed": 50
					}
				],
				"on_dig": {
					"event": "dam"
				}
			},
			"minecraft:damage": 10,
			"tag:minecraft:is_axe": {},
			"minecraft:display_name": {
				"value": "Chainsaw"
			},
			"minecraft:icon": {
				"texture": "chainsaw"
			},
			"minecraft:creative_category": {
				"parent": "itemGroup.name.axe"
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "dam"
				}
			},
			"minecraft:repairable": {
				"repair_items": [
					{
						"items": [
							"sp:mechaironite"
						],
						"repair_amount": 1000
					},
					{
						"items": [
							"sp:chainsaw"
						],
						"repair_amount": 2400
					}
				]
			}
		},
		"events": {
			"dam": {
				"damage": {
					"type": "magic",
					"amount": 1,
					"target": "self"
				}
			}
		}
	}
}