diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-11-14 18:05:37 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-11-14 18:05:37 -0500 |
commit | e1baf2018bf1faff14eaa83e65ba8fa029296e5d (patch) | |
tree | db6d3baad380d32dddf4db41c7d9b7587f53b8ce /init.lua | |
parent | 88eb73af9057ddff9ba3bace76627046848455cf (diff) |
Made it possible via moretrees config to force all moretrees, default, and
default jungle tree leaves to be plantlike drawtype.
The default setting is now plantlike. Change moretres_settings.txt in
your world folder if you don't like it.
Rearranged a bit of code to accommodate this.
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 = { |