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

tag @e[tag=spawn_pumpkin,limit=1,sort=random,tag=!summon] add summon
scoreboard players remove pumpkin main 1
execute if score pumpkin main matches 1.. run function f:game/pumpkin/mark_summon