#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    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_pumpkin pumpkins 0
execute if score option_pumpkin pumpkins matches 1.. run scoreboard players set option_pumpkin pumpkins -5
execute if score option_pumpkin pumpkins matches ..-6 run scoreboard players set option_pumpkin pumpkins 0

execute if score option_pumpkin pumpkins matches -5 run item replace entity @s armor.head with minecraft:lime_dye{CustomModelData:13}
execute if score option_pumpkin pumpkins matches -4 run item replace entity @s armor.head with minecraft:lime_dye{CustomModelData:12}
execute if score option_pumpkin pumpkins matches -3 run item replace entity @s armor.head with minecraft:lime_dye{CustomModelData:11}
execute if score option_pumpkin pumpkins matches -2 run item replace entity @s armor.head with minecraft:lime_dye{CustomModelData:10}
execute if score option_pumpkin pumpkins matches -1 run item replace entity @s armor.head with minecraft:lime_dye{CustomModelData:9}
execute if score option_pumpkin pumpkins matches 0 run item replace entity @s armor.head with minecraft:lime_dye{CustomModelData:8}

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