//bridge-file-version: #36
{
	"format_version": "1.17.0",
	"minecraft:item": {
		"description": {
			"identifier": "strat:mattock_97",
			"category": "equipment"
		},
		"components": {
			"minecraft:max_stack_size": 1,
			"minecraft:hand_equipped": true,
			"minecraft:durability": {
				"max_durability": 205,
				"damage_chance": {
					"min": 1,
					"max": 1
				}
			},
			"minecraft:mining_speed": 5,
			"minecraft:damage": 6,
			"minecraft:digger": {
				"use_efficiency": true,
				"destroy_speeds": [
					{
						"block": {
							"tags": "q.any_tag('wood', 'pumpkin', 'plant')"
						},
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:chest",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:melon_block",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:crafting_table",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:bookshelf",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:dirt",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:grass",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:grass_path",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:farmland",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": "minecraft:hay_block",
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					},
					{
						"block": {
							"tags": "query.all_tags('dirt')"
						},
						"speed": 5,
						"on_dig": {
							"event": "hurt"
						}
					}
				],
				"on_dig": {
					"event": "hurt"
				}
			},
			"tag:minecraft:is_axe": {},
			"minecraft:display_name": {
				"value": "Flint-Copper Mattock"
			},
			"minecraft:icon": {
				"texture": "mattock_97"
			},
			"minecraft:creative_category": {
				"parent": "itemGroup.name.hoe"
			},
			"minecraft:use_on": {
				"blocks": [
					"grass",
					"dirt",
					"grass_path"
				]
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "hurt_2"
				},
				"on_hit_block": {
					"event": "hurt"
				}
			},
			"minecraft:on_use_on": {
				"on_use_on": {
					"event": "farm",
					"target": "self"
				}
			}
		},
		"events": {
			"hurt": {
				"damage": {
					"type": "none",
					"amount": 1,
					"target": "self"
				}
			},
			"hurt_2": {
				"damage": {
					"type": "none",
					"amount": 2,
					"target": "self"
				}
			},
			"farm": {
				"sequence": [
					{
						"damage": {
							"type": "none",
							"amount": 1,
							"target": "item"
						},
						"run_command": {
							"command": [
								"fill ~ ~ ~ ~ ~ ~ farmland 0 replace dirt",
								"fill ~ ~ ~ ~ ~ ~ farmland 0 replace grass",
								"fill ~ ~ ~ ~ ~ ~ farmland 0 replace grass_path"
							]
						},
						"swing": {}
					}
				]
			}
		}
	}
}