{
  "format_version": "1.16.100",
  "minecraft:item": {
    "description": {
      "identifier": "nicothekid:blazing_staff",
      "category": "equipment"
    },
    "components": {
      "minecraft:icon": {
				"texture": "nicothekid_blazing_staff"
			},
			"minecraft:display_name": {
				"value": "item.nicothekid:blazing_staff.name"
			},
			"minecraft:creative_category": {
				"parent": "Equipment"
			},
			"minecraft:render_offsets": "bow",
      "minecraft:max_stack_size": 1,
      "minecraft:foil": false,
      "minecraft:hand_equipped": true,
			"minecraft:allow_off_hand": false,
			"minecraft:use_animation": "bow",
			"minecraft:cooldown": {
				"category": "blazing_staff",
				"duration": 1.5
			},
			"minecraft:durability": {
				"max_durability": 120,
				"damage_chance": {
					"min": 60,
					"max": 100
				}
			},
			"minecraft:damage": 5,
			"minecraft:enchantable": {
			  "slot": "flintsteel",
				"value": 10
			},
			"minecraft:repairable": {
				"repair_items": [
					{
						"items": [
							"nicothekid:blazing_pearl"
						],
						"repair_amount": 45
					},
					{
						"items": [
							"minecraft:blaze_rod"
						],
						"repair_amount": 20
					},
					{
						"items": [
							"minecraft:blaze_powder"
						],
						"repair_amount": 10
					}
				]
			},
			"minecraft:on_use": {
				"on_use": {
					"target": "self",
					"event": "shoot_projectile"
				}
			},
			"minecraft:weapon": {
				"on_hurt_entity": {
					"event": "hitting_effect"
				}
			},
			"tag:blazing_staff": {},
			"tag:staff": {},
			"tag:melee_weapon": {}
    },
    "events": {
			"shoot_projectile": {
				"sequence": [
					{
						"shoot": {
							"projectile": "nicothekid:projectile_blazing_pearl",
							"launch_power": 2
						}
					},
					{
						"run_command": {
							"command": [
								"playsound mob.ghast.fireball @a[r=10]"
							]
						}
					},
					{
						"damage": {
							"type": "durability",
							"amount": 1
						}
					}
				]
			},
			"hitting_effect": {
				"damage": {
					"target": "self",
					"type": "durability",
					"amount": 1
				},
				"run_command": {
					"target": "other",
					"command": [
						"particle nicothekid:fire_impact_particle\t~~~"
					]
				}
			}
		}
  }
}