$tp @s @n[tag=map_lobby,scores={map_id=$(map_id)}]
execute at @s positioned ~ ~1 ~ run playsound minecraft:entity.item.pickup player @a ~ ~ ~ 0.5 0
execute at @s run particle minecraft:poof ~ ~1 ~ 0 0 0 0.15 10
scoreboard players set @s coins 15
scoreboard players set @s gems 0
scoreboard players set @s coins_to_add 0
scoreboard players set @s gems_to_add 0

scoreboard players set @s kills_this_game 0
scoreboard players set @s zombie_kills_this_game 0
scoreboard players set @s deaths_this_game 0
scoreboard players set @s flags_stolen_this_game 0

scoreboard players set @s melee_lvl 0
scoreboard players set @s armor_lvl 0
scoreboard players set @s melee_enchant_lvl 0
scoreboard players set @s armor_enchant_lvl 0
scoreboard players set @s ranged_enchant_lvl 0

tag @s remove has_axe
tag @s remove has_shears

scoreboard players reset @s cosmetics_ui

scoreboard players reset @s death_count