execute store result score #hit lootinremastered.const run kill @e[type=item,nbt={Item:{id:"minecraft:barrel"},Age:0s}]
execute if score #hit lootinremastered.const matches 0 store result score #hit lootinremastered.const run kill @e[type=item,nbt={Item:{id:"minecraft:barrel"},Age:0s}]
execute if data entity @s item.tag.lootinremastered.LootTable run function lootinremastered:loop/cleanup/wipe
execute if score #hit lootinremastered.const matches 1 run function lootinremastered:loop/cleanup/drop
kill @s
