
# -> Cauldron
execute if block ~ ~ ~ cauldron run \
    setblock ~ ~ ~ lava_cauldron

# -> If player is in creative then return
execute if entity @s[gamemode=creative] run \
    return fail

# -> Replace water bucket
execute if items entity @s weapon.mainhand *[custom_data~{or_bucket_specific:"iron_bucket",or_bucket_contents_type:"lava"}] run \
    return run \
        loot replace entity @s weapon.mainhand loot overly_realistic:items/iron_bucket_empty
loot replace entity @s weapon.mainhand loot overly_realistic:items/iron_bucket_empty
