mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
take lava from cauldron with bucket
This commit is contained in:
parent
9937224997
commit
7a8d20e124
1 changed files with 6 additions and 0 deletions
|
@ -282,6 +282,12 @@ local function on_place_bucket_empty(itemstack, user, pointed_thing)
|
|||
new_bucket = ItemStack("mcl_buckets:bucket_river_water")
|
||||
end
|
||||
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
|
||||
if new_bucket then
|
||||
return give_bucket(new_bucket, itemstack, user)
|
||||
|
|
Loading…
Reference in a new issue