1
0
Fork 0

Melt ice and top snow @ light >= 12

objects
Wuzzy 2018-01-07 21:01:34 +01:00
parent ba0bc7a47d
commit fc0516cb71
1 changed files with 13 additions and 0 deletions

View File

@ -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.