scoreboard players add @s scp1013function 1
execute as @s[scores={scp1013function=5..102}] at @s run effect @s weakness 5 5 true
execute as @s[scores={scp1013function=100..}] at @s run setblock ~~~ scpcf:scp_1013_nest
execute as @s[scores={scp1013function=101..}] at @s run kill @s
execute as @s[scores={scp1013function=102..}] at @s run tag @s remove scp1013function