#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

scoreboard players remove $game_type time 1

execute if score $game_type time matches 30 run item replace entity @e[tag=classic] armor.head with lime_dye{CustomModelData:59}
execute if score $game_type time matches 30 run item replace entity @e[tag=ctp] armor.head with lime_dye{CustomModelData:60}
execute if score $game_type time matches 30 run item replace entity @e[tag=deathmatch] armor.head with lime_dye{CustomModelData:61}
execute if score $game_type time matches 30 run item replace entity @e[tag=hide_and_seek] armor.head with lime_dye{CustomModelData:62}

execute if score $game_type time matches 15 run item replace entity @e[tag=selected_game_type,tag=classic] armor.head with lime_dye{CustomModelData:64}
execute if score $game_type time matches 15 run item replace entity @e[tag=selected_game_type,tag=ctp] armor.head with lime_dye{CustomModelData:65}
execute if score $game_type time matches 15 run item replace entity @e[tag=selected_game_type,tag=deathmatch] armor.head with lime_dye{CustomModelData:66}
execute if score $game_type time matches 15 run item replace entity @e[tag=selected_game_type,tag=hide_and_seek] armor.head with lime_dye{CustomModelData:67}