
# -> If block is not oak_leaves then return and remove marker
execute unless block ~ ~ ~ oak_leaves run \
    return run \
        kill @s

# -> Replace block
setblock ~ ~ ~ air

# -> Particle
particle minecraft:block{block_state:"minecraft:oak_leaves"} ~ ~ ~ 0.4 0.4 0.4 0.001 50 normal @a

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

# -> Remove marker
kill @s