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 8
scoreboard players add @s ethereal_count 1
execute if score @s ethereal_count matches 1 positioned ^-3 ^ ^0.25 run summon marker ~ ~2 ~ {Tags:["right","magic_proj","check_proj","ethereal_blade_scroll","new"],CustomName:'"ethereal_blade_scroll"'}
execute if score @s ethereal_count matches 2 positioned ^3 ^ ^0.25 run summon marker ~ ~2 ~ {Tags:["left","magic_proj","check_proj","ethereal_blade_scroll","new"],CustomName:'"ethereal_blade_scroll"'}
execute if score @s ethereal_count matches 2.. run scoreboard players set @s ethereal_count 0
tag @s add temp
execute as @n[tag=ethereal_blade_scroll,tag=new] at @s rotated as @n[tag=temp] run tp @s ~ ~ ~ ~ ~
execute as @n[tag=ethereal_blade_scroll,tag=new] run scoreboard players operation @s ctf_ID = @n[tag=temp] ctf_ID
execute as @n[tag=ethereal_blade_scroll,tag=new] run scoreboard players operation @s real_ID = @n[tag=temp] real_ID
execute as @n[tag=ethereal_blade_scroll,tag=new] run scoreboard players set @s size 8
execute as @n[tag=ethereal_blade_scroll,tag=new] store result score @s generic_timer_max run scoreboard players set @s generic_timer 5
tag @s remove temp

tag @n[tag=new] remove new

playsound minecraft:entity.illusioner.cast_spell player @a ~ ~ ~ 1 1.75
playsound minecraft:entity.player.attack.sweep player @a ~ ~ ~ 1 0.75

scoreboard players add @s spell_cooldown1 7