scoreboard objectives add notify_wins dummy
scoreboard objectives add notify_kills dummy
scoreboard objectives add men_cos dummy
scoreboard objectives add cage_type dummy
scoreboard objectives add shield_type dummy
scoreboard objectives add arrow_type dummy
scoreboard objectives add easter_arbol dummy
scoreboard objectives add easter_cueva dummy

scoreboard objectives add c4Timer dummy
scoreboard objectives add fireballCooldown dummy
scoreboard objectives add supplyDropCooldown dummy
scoreboard objectives add supplyDropSpawningCooldown dummy
scoreboard objectives add healing_zone dummy
scoreboard objectives add lifetime dummy

scoreboard objectives add temp dummy
scoreboard objectives add lobby.launcher dummy
scoreboard objectives add y dummy
scoreboard objectives add option dummy

scoreboard objectives add gameID dummy
scoreboard objectives add cageID dummy
scoreboard objectives add playerID dummy

scoreboard objectives add join minecraft.custom:minecraft.leave_game
scoreboard objectives add spectating dummy

scoreboard objectives add statsKills minecraft.custom:minecraft.player_kills
scoreboard objectives add statsDeaths deathCount
scoreboard objectives add statsGames dummy
scoreboard objectives add statsWins dummy

scoreboard objectives add die deathCount

scoreboard objectives add gameKills minecraft.custom:minecraft.player_kills
scoreboard objectives modify gameKills numberformat styled {"color":"#ff0000"}

scoreboard objectives add gameInfoValues dummy
scoreboard objectives add gameInfo dummy
scoreboard objectives modify gameInfo displayname {translate:"subchronos.game.scoreboard.title",fallback:" -  Game Info  - ",color:"#f957ff","shadow_color":-13750738}
scoreboard objectives modify gameInfo numberformat blank

scoreboard objectives add const dummy
scoreboard players set 20 const 20
scoreboard players set 60 const 60

gamerule locator_bar false

team add yellow
team modify yellow color yellow

team add player
team modify player color green
team modify player seeFriendlyInvisibles false
team add spectator
team modify spectator color gray

team add t1
team add t2
team add t3
team add t4
team modify t1 color green
team modify t2 color green
team modify t3 color green
team modify t4 color green
team modify t1 prefix {"fallback":"[Team 1] ","color":"green",translate:"subchronos.game.team1.prefix"}
team modify t2 prefix {"fallback":"[Team 2] ","color":"green",translate:"subchronos.game.team2.prefix"}
team modify t3 prefix {"fallback":"[Team 3] ","color":"green",translate:"subchronos.game.team3.prefix"}
team modify t4 prefix {"fallback":"[Team 4] ","color":"green",translate:"subchronos.game.team4.prefix"}



gamerule immediate_respawn true
gamerule players_nether_portal_default_delay 1000000000
gamerule players_nether_portal_creative_delay 1000000000

#Map database
data merge storage subchronos:maps {1:{name:"Tents",id:"1",teams:""}}
data merge storage subchronos:maps {2:{name:"Oreo",id:"2",teams:""}}
data merge storage subchronos:maps {3:{name:"TNT",id:"3",teams:""}}
data merge storage subchronos:maps {4:{name:"Bastion",id:"4",teams:""}}
data merge storage subchronos:maps {5:{name:"Sand Castle",id:"5",teams:""}}
data merge storage subchronos:maps {6:{name:"Donut",id:"6",teams:""}}
data merge storage subchronos:maps {7:{name:"Glass Balls",id:"7",teams:""}}
data merge storage subchronos:maps {8:{name:"Christmas",id:"8",teams:""}}
data merge storage subchronos:maps {9:{name:"Candles",id:"9",teams:""}}
data merge storage subchronos:maps {10:{name:"Biomes",id:"10",teams:""}}

data merge storage subchronos:maps {999:{name:"Random - Solo",id:"999",teams:""}}

data merge storage subchronos:maps {1101:{name:"Castle",id:"1101",teams:"4v4"}}
data merge storage subchronos:maps {1102:{name:"Shulker",id:"1102",teams:"2v2v2v2"}}
data merge storage subchronos:maps {1103:{name:"Copper",id:"1103",teams:"2v2v2v2"}}
data merge storage subchronos:maps {1104:{name:"Pizza",id:"1104",teams:"2v2v2v2"}}
data merge storage subchronos:maps {1105:{name:"Baguette",id:"1105",teams:"4v4"}}

data merge storage subchronos:maps {9999:{name:"Random - Teams",id:"9999",teams:""}}

function subchronos:tick1s