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

#Score hider
scoreboard players set §1§6 score_blue 6
scoreboard players set §1§5 score_blue 5
scoreboard players set §1§4 score_blue 4
scoreboard players set §1§3 score_blue 3
scoreboard players set §1§2 score_blue 2
scoreboard players set §1§1 score_blue 1
scoreboard players set §1§0 score_blue 0

team join teamname18 §1§6
team leave §1§5
team join teamname22 §1§4
team leave §1§3
team join teamname24 §1§2
team leave §1§1
team join teamname7 §1§0


#Score red
scoreboard players set §1§6 score_red 6
scoreboard players set §1§5 score_red 5
scoreboard players set §2§4 score_red 4
scoreboard players set §1§3 score_red 3
scoreboard players set §1§2 score_red 2
scoreboard players set §1§1 score_red 1
scoreboard players set §1§0 score_red 0

team join teamname23 §2§4


scoreboard objectives setdisplay sidebar.team.aqua score_blue
scoreboard objectives setdisplay sidebar.team.dark_purple score_red

#Disable alarm and shop
function f:game/start/disable_alarm
function f:game/start/disable_shop

#No activity
scoreboard players set @a activity_sensor 5

#Compass track players
scoreboard players set @a mode 2

#No invulerable achievement
tag @a add died

#Timer
tag @a remove start_no_title
scoreboard players set timer time 31
scoreboard players set timer click 1
team modify teamname7 prefix {"translate":"score.start","color":"gray"}

tag @a[team=seeker] remove player

#Berries minigame
scoreboard players set $berries main 0
data merge block 21 151 -35 {Text2:'{"translate":"berries.name"}',GlowingText:1,Text3:'{"score":{"name":"$berries","objective":"main"},"color":"dark_red"}'}
