
# -> Check for iron tools
execute if items entity @s contents #overly_realistic:iron_tools \
    unless items entity @s contents *[custom_data~{current_process:"forged"}] run \
        return run \
            function overly_realistic:general/forgery/iron_tools/iron_tool_drop_detect with entity @s Item.components."minecraft:custom_data"
#execute unless items entity @s contents *[custom_data~{or_edited_item:1b}] run say aaaa

# -> If item does not have or_edited_item=true data then edit it
#execute unless items entity @s contents *[custom_data~{or_edited_item:1b}] run \
    function overly_realistic:general/items/edit_item_general

# -> Tag item
tag @s add OverlyRealistic.CheckedItemDrop

# -> If block above is collapseable, then try to collapse it
execute if block ~ ~ ~ #air \
    unless block ~ ~1 ~ #overly_realistic:cant_collapse run \
        summon marker ~ ~1 ~ {Tags:["OverlyRealistic.CollapseableBlockPosition"]}
