
# -> Sound
playsound block.stone.break block @a ~ ~ ~ 0.9 1
playsound block.tuff.break block @a ~ ~ ~ 1 1
playsound block.stone.place block @a ~ ~ ~ 1 1

# -> Particles
particle item{item:"stone"} ~ ~ ~ 0.2 0.4 0.2 0.1 8 normal @a

# -> Drop prop item
loot spawn ~ ~ ~ loot overly_realistic:items/items_from_props/flint

# -> Give player the advancement
advancement grant @p[tag=OverlyRealistic.Player.BrokeCustomBlock,distance=..128] only overly_realistic:advancements/stone_age/resourceful

# -> Remove prop
execute on vehicle run \
    kill @s
kill @s
