
# -> Set block
execute if block ~ ~ ~ acacia_wood[axis=x] run setblock ~ ~ ~ stripped_acacia_wood[axis=x]
execute if block ~ ~ ~ acacia_wood[axis=y] run setblock ~ ~ ~ stripped_acacia_wood[axis=y]
execute if block ~ ~ ~ acacia_wood[axis=z] run setblock ~ ~ ~ stripped_acacia_wood[axis=z]

# -> Particles
execute align xyz run \
    particle block{block_state:"minecraft:acacia_wood"} ~0.5 ~0.5 ~0.5 0.5 0.5 0.5 0.001 35 normal @a
execute align xyz run \
    particle block{block_state:"minecraft:stripped_acacia_wood"} ~0.5 ~0.5 ~0.5 0.5 0.5 0.5 0.001 25 normal @a

# -> Sound
playsound minecraft:item.axe.strip block @a ~ ~ ~ 0.655 1

# -> Bark drop
loot spawn ~ ~ ~ loot overly_realistic:items/bark/acacia_bark

# -> If 'easier drop rates' is enabled then drop extra bark
execute if score #or.setting.easier_drop_rates OverlyRealistic.Settings.ArbitrarySetting matches 1 run \
    loot spawn ~ ~ ~ loot overly_realistic:items/bark/acacia_bark
