MineClone2/mods/CORE/mcl_oxidation/init.lua
2023-06-02 20:28:54 +00:00

13 lines
341 B
Lua

minetest.register_abm({
label = "Oxidatize Nodes",
nodenames = { "group:oxidizable" },
interval = 500,
chance = 3,
action = function(pos, node)
local def = minetest.registered_nodes[node]
if def and def._mcl_oxidized_variant then
minetest.swap_node(pos, { name = def._mcl_oxidized_varient, param2 = node.param2 })
end
end,
})