
# -> If there is already a marker in this position then return
execute align xyz \
    if entity @n[type=marker,tag=OverlyRealistic.CampfireBlock,dx=0,dy=0,dz=0] run \
        return fail

# -> Create campfire marker
execute align xyz run \
    summon marker ~0.5 ~0.5 ~0.5 {Tags:["OverlyRealistic.CampfireBlock"]}

# -> Set campfire block
setblock ~ ~ ~ campfire[lit=true,signal_fire=true]
