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