Files
memory_smp_s2
Code
12 119
memory_smp_s2/data/memory_smp/function/tick.mcfunction
execute as @a unless score @s m_init matches 1 run function memory_smp:initialize
execute as @a if score @s m_deaths > @s m_done run function memory_smp:on_death
execute as @a[scores={m_stage=0}] run function memory_smp:apply_fresh_buff
effect give @a[scores={m_stage=2..}] minecraft:weakness 2 0 true
effect give @a[scores={m_stage=3..}] minecraft:mining_fatigue 2 0 true
effect give @a[scores={m_stage=4..}] minecraft:invisibility 2 0 true
effect give @a[scores={m_stage=4..}] minecraft:glowing 2 0 true
team join memory_lost @a[scores={m_stage=4..},team=!memory_lost]
team leave @a[scores={m_stage=..3},team=memory_lost]