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

scoreboard players set @e[tag=cauldron] time 58

#Classic
execute if score $game_type main matches 0 run scoreboard players set @e[tag=cauldron1] main 0
execute if score $game_type main matches 0 run scoreboard players set @e[tag=cauldron2] main 1
execute if score $game_type main matches 0 run data merge entity @e[tag=option_text1,limit=1] {CustomNameVisible:1,CustomName:'{"translate":"option.time","color":"gold"}'}
execute if score $game_type main matches 0 run data merge entity @e[tag=option_text2,limit=1] {CustomNameVisible:1,CustomName:'{"translate":"option.pumpkins","color":"gold"}'}

#CTP/hide and seek
execute if score $game_type main matches 1..3 run scoreboard players set @e[tag=cauldron1] main 0
execute if score $game_type main matches 1..3 run scoreboard players set @e[tag=cauldron2] main -1
execute if score $game_type main matches 1..3 run data merge entity @e[tag=option_text1,limit=1] {CustomNameVisible:1,CustomName:'{"translate":"option.time","color":"gold"}'}
execute if score $game_type main matches 1..3 run data merge entity @e[tag=option_text2,limit=1] {CustomNameVisible:0}

#Deathmatch
execute if score $game_type main matches 2 run scoreboard players set @e[tag=cauldron1] main 2
execute if score $game_type main matches 2 run scoreboard players set @e[tag=cauldron2] main -1
execute if score $game_type main matches 2 run data merge entity @e[tag=option_text1,limit=1] {CustomNameVisible:1,CustomName:'{"translate":"option.kills","color":"gold"}'}
execute if score $game_type main matches 2 run data merge entity @e[tag=option_text2,limit=1] {CustomNameVisible:0}
