#summon a marker, and run the next function as(and at) it
summon minecraft:marker ~ ~ ~ {Tags:["PlumpGoFind"]}
execute as @e[type=marker,tag=PlumpGoFind,distance=..3] run execute at @s positioned ~ ~ ~ run function zzzzdonotuse:structures/pumpkin/pumpkin2