mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 10:12:59 +00:00
Melt ice and top snow @ light >= 12
This commit is contained in:
parent
ba0bc7a47d
commit
fc0516cb71
1 changed files with 13 additions and 0 deletions
|
@ -1151,6 +1151,19 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
-- Melt snow
|
||||
minetest.register_abm({
|
||||
label = "Top snow and ice melting",
|
||||
nodenames = {"mcl_core:snow", "mcl_core:ice"},
|
||||
interval = 16,
|
||||
chance = 8,
|
||||
action = function(pos, node)
|
||||
if minetest.get_node_light(pos, 0) >= 12 then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
--[[ Call this for vines nodes only.
|
||||
Given the pos and node of a vines node, this returns true if the vines are supported
|
||||
and false if the vines are currently floating.
|
||||
|
|
Loading…
Reference in a new issue