
# -> Remove display
execute on passengers \
    if entity @s[tag=OverlyRealistic.Block.DryTinder_Item_Stick] run \
        function overly_realistic:general/custom_blocks/dry_tinder/dry_tinder_drop_items
execute on passengers run \
    kill @s

# -> Particles
particle block{block_state:"leaf_litter"} ~ ~-0.3 ~ 0.3 0 0.3 1 30 normal @a
particle block{block_state:"vine"} ~ ~-0.3 ~ 0.3 0 0.3 1 20 normal @a

# -> Sound
playsound block.leaf_litter.break block @a ~ ~ ~ 1 1
playsound block.leaf_litter.break block @a ~ ~ ~ 1 1.5
playsound block.leaf_litter.break block @a ~ ~ ~ 1 0.5

# -> Drop item
execute on attacker \
    if entity @s[gamemode=!creative] run \
        loot spawn ~ ~ ~ loot overly_realistic:blocks/dry_tinder

# -> Remove interaction
kill @s
