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

scoreboard players add option_kills pumpkins 0
execute if score option_kills pumpkins matches 3.. run scoreboard players set option_kills pumpkins -2
execute if score option_kills pumpkins matches ..-3 run scoreboard players set option_kills pumpkins 2

execute if score option_kills pumpkins matches -2 run item replace entity @s armor.head with minecraft:snowball{CustomModelData:0}
execute if score option_kills pumpkins matches -1 run item replace entity @s armor.head with minecraft:snowball{CustomModelData:1}
execute if score option_kills pumpkins matches 0 run item replace entity @s armor.head with minecraft:snowball{CustomModelData:2}
execute if score option_kills pumpkins matches 1 run item replace entity @s armor.head with minecraft:snowball{CustomModelData:3}
execute if score option_kills pumpkins matches 2 run item replace entity @s armor.head with minecraft:snowball{CustomModelData:4}

scoreboard players set @s time 180
scoreboard players set @s kills 24
tag @s remove option_new