//bridge-file-version: #6
{
	"format_version": "1.17.0",
	"minecraft:item": {
		"description": {
			"identifier": "strat:broadsword_73",
			"category": "equipment"
		},
		"components": {
			"minecraft:max_stack_size": 1,
			"minecraft:use_duration": 3600,
			"minecraft:hand_equipped": true,
			"minecraft:durability": {
				"max_durability": 23,
				"damage_chance": {
					"min": 1,
					"max": 1
				}
			},
			"minecraft:damage": 4,
			"minecraft:can_destroy_in_creative": false,
			"minecraft:digger": {
				"use_efficiency": true,
				"destroy_speeds": [
					{
						"block": "minecraft:web",
						"speed": 15,
						"on_dig": {
							"event": "hurt_2"
						}
					},
					{
						"block": "minecraft:bamboo",
						"speed": 10,
						"on_dig": {
							"event": "hurt_2"
						}
					}
				],
				"on_dig": {
					"event": "hurt_2"
				}
			},
			"minecraft:display_name": {
				"value": "Wooden Broadsword"
			},
			"minecraft:icon": {
				"texture": "broadsword_73"
			},
			"minecraft:creative_category": {
				"parent": "itemGroup.name.sword"
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "hurt"
				},
				"on_hit_block": {
					"event": "hurt_2"
				}
			}
		},
		"events": {
			"hurt": {
				"sequence": [
					{
						"damage": {
							"type": "none",
							"amount": 1,
							"target": "self"
						},
						"run_command": {
							"command": [
								"execute @e[type=!player,type=!xp_orb,type=!item,type=!armor_stand,r=3,c=5] ~~~ playsound game.player.attack.strong @a ~~~",
								"execute @e[type=!player,type=!xp_orb,type=!item,type=!armor_stand,r=3,c=5] ~~~ particle minecraft:large_explosion ~~+0.75~"
							]
						}
					},
					{
						"randomize": [
							{
								"run_command": {
									"command": [
										"damage @e[type=!player,r=3,c=5] 1"
									]
								},
								"weight": 4
							},
							{
								"weight": 1
							}
						]
					}
				]
			},
			"hurt_2": {
				"damage": {
					"type": "none",
					"amount": 2,
					"target": "self"
				}
			},
			"on_tool_used": {}
		}
	}
}