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

#animation
function f:game/score/anim

#Detect in base
execute if score $game_type main matches 0..1 as @a[team=!spec,scores={kill-timer=0},tag=player] at @s run function f:game/score/as

#Score display
scoreboard players set @a shift 0
execute unless score $team_blue pumpkin_count = $team_blue main run function f:game/score/score_blue
execute unless score $team_red pumpkin_count = $team_red main run function f:game/score/score_red
execute unless score $team_green pumpkin_count = $team_green main run function f:game/score/score_green
execute unless score $team_yellow pumpkin_count = $team_yellow main run function f:game/score/score_yellow