execute if entity @e[type=silverfish,tag=necromancer_position_marker] run kill @e[type=silverfish,tag=necromancer_position_marker,limit=1,sort=nearest]
execute if score @s necromancer_call_switch matches 0 as @e[tag=necromancer_summon] at @s run function kiwi2:upgrades/classes/necromancer/summons/all_summons/find_enemy_nearest
execute if score @s necromancer_call_switch matches 1 run function kiwi2:upgrades/classes/necromancer/summons/all_summons/find_enemy_nearest_player
execute if score @s necromancer_call_switch matches 2 run function kiwi2:upgrades/classes/necromancer/summons/all_summons/find_enemy_random
execute if score @s necromancer_call_switch matches 3 run function kiwi2:upgrades/classes/necromancer/summons/all_summons/find_player_position
playsound minecraft:entity.fox.spit player @a[distance=..6] ~ ~ ~ 1 0
playsound minecraft:entity.skeleton.converted_to_stray player @a[distance=..6] ~ ~ ~ 1 2
playsound minecraft:block.sculk_shrieker.shriek player @a[distance=..6] ~ ~ ~ 0.25 2
particle soul ~ ~0.1 ~ 0.8 0 0.8 0 15
particle shriek{delay:0} ~ ~1 ~ 0 0 0 0 100 normal
particle shriek{delay:5} ~ ~1 ~ 0 0 0 0 100 normal
particle shriek{delay:10} ~ ~1 ~ 0 0 0 0 100 normal