#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#Deposit
scoreboard players operation $team_green pumpkin_count += @s pumpkin_count
summon firework_rocket 79 178 34 {LifeTime:20,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;1946885]}]}}},Silent:1b}
execute as @a[team=green] at @s run playsound ui.toast.challenge_complete master @s ~ ~ ~ 0.5 1.5
effect give @a[team=green] minecraft:night_vision 3 1 true

function f:game/score/deposit