#execute as @e[tag=evilcrys] at @e[tag=crysevok,limit=1,sort=nearest] run tp @s ~ ~2.3 ~
execute positioned ~ ~-2.3 ~ unless entity @e[tag=crysevok,distance=..1] run kill @s

execute store result score @s itemcount if entity @e[tag=cryshat,distance=...1]
execute if score @s itemcount matches 2.. run function survivalplus:tools/trap/evilcrysfix

tp @s ~ ~ ~ ~3 ~3
execute if entity @s[nbt={Rotation:[90f]}] at @s run tp @s ~ ~ ~ ~ ~-90
execute if entity @a[distance=..6,gamemode=!creative,gamemode=!spectator] anchored eyes run tp @s ~ ~ ~ facing entity @p[gamemode=!creative,gamemode=!spectator] eyes
execute if entity @a[distance=..6,gamemode=!creative,gamemode=!spectator] if score @s timer matches 0 run function survivalplus:tools/trap/evilcrystarget

execute unless score @s timer matches 1.. run scoreboard players set @s timer 45
execute if entity @a[distance=..6,gamemode=!creative,gamemode=!spectator] run scoreboard players remove @s[scores={timer=1..}] timer 1