take lava from cauldron with bucket

This commit is contained in:
cora 2022-06-21 13:05:24 +02:00
parent 9937224997
commit 7a8d20e124
1 changed files with 6 additions and 0 deletions

View File

@ -282,6 +282,12 @@ local function on_place_bucket_empty(itemstack, user, pointed_thing)
new_bucket = ItemStack("mcl_buckets:bucket_river_water") new_bucket = ItemStack("mcl_buckets:bucket_river_water")
end end
sound_take("mclx_core:river_water_source", pointed_thing.under) sound_take("mclx_core:river_water_source", pointed_thing.under)
elseif nn == "mcl_cauldrons:cauldron_3_lava" then
set_node(pointed_thing.under, {name="mcl_cauldrons:cauldron"})
if not is_creative_enabled(user:get_player_name()) then
new_bucket = ItemStack("mcl_buckets:bucket_lava")
end
sound_take("mcl_core:lava_source", pointed_thing.under)
end end
if new_bucket then if new_bucket then
return give_bucket(new_bucket, itemstack, user) return give_bucket(new_bucket, itemstack, user)