kill @s

# Create barrel #
execute if score op option matches 0 if score special_items option matches 0 run setblock ~ ~ ~ barrel{LootTable:"subchronos:chest/no_special/normal/mid"}
execute if score op option matches 0 if score special_items option matches 1 run setblock ~ ~ ~ barrel{LootTable:"subchronos:chest/special/normal/mid"}
execute if score op option matches 1 if score special_items option matches 0 run setblock ~ ~ ~ barrel{LootTable:"subchronos:chest/no_special/op/mid"}
execute if score op option matches 1 if score special_items option matches 1 run setblock ~ ~ ~ barrel{LootTable:"subchronos:chest/special/op/mid"}

kill @e[type=item,distance=0..15,nbt={Item:{id:"minecraft:lead"}}]