
# -> Advancement
execute on vehicle \
    on target run \
        advancement grant @s only overly_realistic:advancements/mortar_uses/dyeful

# -> Get item name
data modify storage overly_realistic:temp_values temp_string_0 set string entity @s item.id 10

# -> Drop item
function overly_realistic:general/custom_blocks/mortar/interactions/dye_crafting/drop_dye with storage overly_realistic:temp_values

# -> Remove item
kill @s
