execute unless entity @s[gamemode=creative] unless items entity @s weapon.mainhand *[custom_data~{wizard_battle:1b}] run item modify entity @s weapon.mainhand pctf:remove1
execute if items entity @s weapon.mainhand *[custom_data~{wizard_battle:1b}] run scoreboard players add @s spell_cooldown1 12

scoreboard players set #shadow_burst temp 12
function pctf:logic/items/scrolls/shadow_burst/start_proj

execute store result score #random temp run random value 1..4
execute if score #random temp matches 1 run playsound minecraft:entity.iron_golem.repair player @a ~ ~ ~ 1 0.65
execute if score #random temp matches 2 run playsound minecraft:entity.iron_golem.repair player @a ~ ~ ~ 1 0.75
execute if score #random temp matches 3 run playsound minecraft:entity.iron_golem.repair player @a ~ ~ ~ 1 0.85
execute if score #random temp matches 4 run playsound minecraft:entity.iron_golem.repair player @a ~ ~ ~ 1 0.95

playsound minecraft:entity.skeleton.death player @a ~ ~ ~ 0.25 2
playsound minecraft:block.honey_block.break player @a ~ ~ ~ 2 0

scoreboard players add @s spell_cooldown1 12