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

execute at @s run particle minecraft:cloud ~ ~1.9 ~ 0.1 0.1 0.1 0.03 7
execute as @a[scores={getpumpkin=1..}] run function f:game/pumpkin/give

execute at @s run playsound minecraft:entity.experience_orb.pickup master @a[distance=..16] ~ ~ ~ 1

execute as @p[scores={getpumpkin=1..}] at @s[tag=!p_remember] run playsound minecraft:block.note_block.pling master @s
execute as @p[scores={getpumpkin=1..}] run tellraw @s[tag=!p_remember] ["",{"text":"\n > ","color":"gold","bold":true},{"translate":"game.remember","color":"red","bold":true},{"translate":"game.remember.deliver","color":"gray"},{"text":"\n"}]
tag @p[scores={getpumpkin=1..}] add p_remember
scoreboard players set @s time 1

#Activity sensor
execute as @p[scores={getpumpkin=1..}] if score @s milk_time matches 0 as @a[scores={activity_sensor=0..1,getpumpkin=..0,kill-timer=..0},tag=player] run function f:game/activity_sensor/info
execute as @p[scores={getpumpkin=1..}] if score @s milk_time matches 0 run title @a[scores={activity_sensor=0..1,getpumpkin=..0,kill-timer=..0},tag=player] actionbar ["",{"selector":"@s","bold":true},{"translate":"game.found","color":"gray"}]
