function mctsts:inventory/save

execute as @a[gamemode=spectator,distance=..1,team=gold] run function mctsts:inventory/load


# Effects
execute unless data entity @s ActiveEffects[{Id:25b}] run effect clear @a[gamemode=spectator,distance=..1,team=gold] levitation
execute if data entity @s ActiveEffects[{Id:25b}] run effect give @a[gamemode=spectator,distance=..1,team=gold] levitation 2 0 true
execute unless data entity @s ActiveEffects[{Id:28b}] run effect clear @a[gamemode=spectator,distance=..1,team=gold] slow_falling
execute if data entity @s ActiveEffects[{Id:28b}] run effect give @a[gamemode=spectator,distance=..1,team=gold] slow_falling 2 0 true
execute unless data entity @s ActiveEffects[{Id:19b}] run effect clear @a[gamemode=spectator,distance=..1,team=gold] poison
execute if data entity @s ActiveEffects[{Id:19b}] run effect give @a[gamemode=spectator,distance=..1,team=gold] poison 2 0 true
execute unless data entity @s ActiveEffects[{Id:2b}] run effect clear @a[gamemode=spectator,distance=..1,team=gold] slowness
execute if data entity @s ActiveEffects[{Id:2b}] run effect give @a[gamemode=spectator,distance=..1,team=gold] slowness 2 0 true