scoreboard players add @s scp940function 1
execute as @s[scores={scp940function=100..702}] at @s run effect @s slowness 5 2 true
execute as @s[scores={scp940function=300..702}] at @s run effect @s slowness 5 3 true
execute as @s[scores={scp940function=500..702}] at @s run effect @s nausea 5 2 true
execute as @s[scores={scp940function=600..702}] at @s run effect @s darkness 5 2 true
execute as @s[scores={scp940function=702..}] at @s run summon scpcf:scp_940_larva_host ~~~
execute as @s[scores={scp940function=702..}] at @s run kill @s
execute as @s[scores={scp940function=702..}] at @s run tag @s remove scp940function