execute store result score .coins_random room run random value 3..5
execute as @n[type=#main:room,tag=room_artifact] at @s run function main:game/wave/coins/spawn
execute as @e[type=item,tag=gold_reward] run data modify entity @s Glowing set value 1b
execute as @e[type=item,tag=gold_reward] run team join yellow_color