
# -> If block is a torch then create a marker
execute if block ~ ~ ~ #overly_realistic:torches run \
    return run \
        execute align xyz \
            positioned ~0.5 ~0.5 ~0.5 \
            unless entity @n[type=marker,tag=OverlyRealistic.TorchBlock,distance=..0.1] run \
                summon marker ~ ~ ~ {Tags:["OverlyRealistic.TorchBlock","OverlyRealistic.Block.IsPlacedBlockMarker"]}

# -> If block is a campfire then create a marker
#execute if block ~ ~ ~ #campfires run \
    return run \
        execute align xyz \
            positioned ~0.5 ~0.5 ~0.5 \
            unless entity @n[type=marker,tag=OverlyRealistic.CampfireBlock,distance=..0.1] run \
                summon marker ~ ~ ~ {Tags:["OverlyRealistic.CampfireBlock","OverlyRealistic.Block.IsPlacedBlockMarker"]}

# -> If block is a stonecutter then create a marker
#execute if block ~ ~ ~ stonecutter run \
    return run \
        execute align xyz \
            positioned ~0.5 ~0.5 ~0.5 \
            unless entity @n[type=marker,tag=OverlyRealistic.StonecutterBlock,distance=..0.1] run \
                summon marker ~ ~ ~ {Tags:["OverlyRealistic.StonecutterBlock","OverlyRealistic.Block.IsPlacedBlockMarker"]}

# -> If block is a player head then create a marker
execute if block ~ ~ ~ #overly_realistic:is_player_head run \
    return run \
        execute align xyz \
            positioned ~0.5 ~0.5 ~0.5 \
            unless data block ~ ~ ~ components."minecraft:consumable" \
            unless data block ~ ~ ~ components."minecraft:item_name" \
            unless entity @n[type=marker,tag=OverlyRealistic.PlayerHeadBlock,distance=..0.1] run \
                summon marker ~ ~ ~ {Tags:["OverlyRealistic.PlayerHeadBlock","OverlyRealistic.Block.IsPlacedBlockMarker"]}
