forked from VoxeLibre/VoxeLibre
Allow placing lava into cauldrons
This commit is contained in:
parent
7a8d20e124
commit
685cba6821
|
@ -34,6 +34,16 @@ if mod_mcl_core then
|
||||||
awards.unlock(user:get_player_name(), "mcl:hotStuff")
|
awards.unlock(user:get_player_name(), "mcl:hotStuff")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
extra_check = function(pos, placer)
|
||||||
|
local nn = minetest.get_node(pos).name
|
||||||
|
if minetest.get_item_group(nn, "cauldron") ~= 0 then
|
||||||
|
if nn ~= "mcl_cauldrons:cauldron_3_lava" then
|
||||||
|
minetest.set_node(pos, {name="mcl_cauldrons:cauldron_3_lava"})
|
||||||
|
end
|
||||||
|
sound_place("mcl_core:lava_source", pos)
|
||||||
|
return false, true
|
||||||
|
end
|
||||||
|
end,
|
||||||
bucketname = "mcl_buckets:bucket_lava",
|
bucketname = "mcl_buckets:bucket_lava",
|
||||||
inventory_image = "bucket_lava.png",
|
inventory_image = "bucket_lava.png",
|
||||||
name = S("Lava Bucket"),
|
name = S("Lava Bucket"),
|
||||||
|
|
Loading…
Reference in New Issue