{
  "format_version": "1.16.100",
  "minecraft:item": {
    "description": {
      "identifier": "nicothekid:copper_shovel",
      "category": "equipment"
    },
    "components": {
      "minecraft:icon": {
				"texture": "nicothekid_copper_shovel"
			},
			"minecraft:display_name": {
				"value": "item.nicothekid:copper_shovel.name"
			},
			"minecraft:creative_category": {
				"parent": "itemGroup.name.shovel"
			},
      "minecraft:max_stack_size": 1,
      "minecraft:foil": false,
      "minecraft:hand_equipped": true,
			"minecraft:allow_off_hand": false,
      "minecraft:durability": {
				"max_durability": 160,
				"damage_chance": {
					"min": 60,
					"max": 100
				}
			},
			"minecraft:damage": 3,
			"minecraft:mining_speed": 5,
			"minecraft:digger": {
				"use_efficiency": true,
				"on_dig": {
					"event": "on_digging",
					"target": "self"
				},
				"destroy_speeds": [
					{
						"block": {
							"tags": "query.any_tag('dirt', 'sand', 'gravel', 'grass', 'snow')"
						},
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:dirt",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:grass",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:grass_path",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:farmland",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:mycelium",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:podzol",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:dirt_with_roots",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:clay",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:gravel",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:sand",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:concretePowder",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:soul_sand",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:soul_soil",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:snow",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:snow_layer",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:mud",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					},
					{
						"block": "minecraft:muddy_mangrove_roots",
						"speed": 5,
						"on_dig": {
							"event": "on_digging"
						}
					}
				]
			},
			"minecraft:enchantable": {
				"value": 10,
				"slot": "shovel"
			},
			"minecraft:repairable": {
				"repair_items": [
					{
						"items": [
							"nicothekid:copper_shovel"
						],
						"repair_amount": "query.remaining_durability"
					},
					{
						"items": [
							"minecraft:copper_ingot"
						],
						"repair_amount": 150
					},
					{
						"items": [
							"nicothekid:copper_scrap"
						],
						"repair_amount": 45
					}
				]
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "on_digging"
				}
			},
			"tag:minecraft:is_shovel": {},
			"tag:copper_shovel": {},
			"tag:shovel": {},
			"tag:melee_weapon": {}
    },
    "events": {
			"on_digging": {
				"damage": {
					"target": "self",
					"type": "durability",
					"amount": 1
				}
			},
			"on_tool_used": {
				"damage": {
					"target": "self",
					"type": "durability",
					"amount": 1
				}
			}
		}
  }
}
