
# -> 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~{IsLavaBucket:1b}] run \
    return run \
        item replace entity @s weapon.mainhand with bucket
item replace entity @s weapon.offhand with bucket
