
# -> Particles
execute align xyz run \
    particle block_crumble{block_state:"powder_snow"} ~0.5 ~0.5 ~0.5 0.25 0.25 0.25 0.1 5 normal @a

# -> Sound
execute at @s run \
    playsound item.bucket.fill_powder_snow block @a ~ ~ ~ 0.5

# -> Set block
setblock ~ ~ ~ cauldron

# -> Set contents type
scoreboard players set #or.iron_bucket_acquire_contents_type OverlyRealistic.General.ArbitraryData 5

# -> Replace item in hand
execute if items entity @s weapon.mainhand *[custom_data~{or_bucket_specific:"iron_bucket",or_bucket_contents:"empty"}] run \
    return run \
        loot replace entity @s weapon.mainhand loot overly_realistic:items/iron_bucket_powder_snow
loot replace entity @s weapon.offhand loot overly_realistic:items/iron_bucket_powder_snow
