diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -39,7 +39,7 @@ if io.open(worldpath.."/moretrees_settings.txt","r") == nil then end io.write(block) end - + io.close() else dofile(worldpath.."/moretrees_settings.txt") end @@ -63,6 +63,17 @@ else moretrees.expect_infinite_stacks = true end +-- node clone, for redefining stuff + +function moretrees:clone_node(name) + node2={} + node=minetest.registered_nodes[name] + for k,v in pairs(node) do + node2[k]=v + end + return node2 +end + -- tables, load other files moretrees.cutting_tools = { |