mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-26 21:03:45 +01:00
Melt ice and top snow @ light >= 12
parent
ba0bc7a47d
commit
fc0516cb71
@ -1151,6 +1151,19 @@ minetest.register_abm({
|
|||||||
end
|
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.
|
--[[ Call this for vines nodes only.
|
||||||
Given the pos and node of a vines node, this returns true if the vines are supported
|
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.
|
and false if the vines are currently floating.
|
||||||
|
Loading…
Reference in New Issue
Block a user