1
0
Fork 0
MineClone2/mods/CORE/mcl_oxidation/init.lua

13 lines
345 B
Lua
Raw Normal View History

2023-05-20 04:24:13 +02:00
minetest.register_abm({
label = "Oxidatize Nodes",
nodenames = { "group:oxidizable" },
interval = 500,
chance = 3,
action = function(pos, node)
local def = minetest.registered_nodes[node.name]
2023-05-20 04:24:13 +02:00
if def and def._mcl_oxidized_variant then
minetest.set_node(pos, { name = def._mcl_oxidized_variant, param2 = node.param2 })
2023-05-20 04:24:13 +02:00
end
end,
})