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


data modify block 14 107 -23 Items[0].tag.LodestonePos.X set from entity @s Pos[0]
data modify block 14 107 -23 Items[0].tag.LodestonePos.Y set from entity @s Pos[1]
data modify block 14 107 -23 Items[0].tag.LodestonePos.Z set from entity @s Pos[2]

execute store result score $compass_pos pos_x run data get entity @s Pos[0] 10
execute store result score $compass_pos pos_y run data get entity @s Pos[1] 10
execute store result score $compass_pos pos_z run data get entity @s Pos[2] 10

execute if entity @s[tag=pumpkin] run scoreboard players add $compass_pos pos_y 15
