From d0acc8a8caafe549bb1513cf6be53c0b4b204fa7 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Mon, 30 Apr 2018 23:31:46 +0300 Subject: maple support --- technic/machines/LV/cnc_nodes.lua | 8 ++++++++ technic/tools/chainsaw.lua | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/technic/machines/LV/cnc_nodes.lua b/technic/machines/LV/cnc_nodes.lua index 6463c62..d17ceab 100644 --- a/technic/machines/LV/cnc_nodes.lua +++ b/technic/machines/LV/cnc_nodes.lua @@ -386,3 +386,11 @@ if minetest.get_modpath("moreblocks") then S("Grey Clay")) end + + +if minetest.get_modpath("maple") then + technic.cnc.register_all("maple:maple_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"maple_wood.png"}, + S("Maple")) +end \ No newline at end of file diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua index eb33b9a..3928c56 100644 --- a/technic/tools/chainsaw.lua +++ b/technic/tools/chainsaw.lua @@ -155,6 +155,14 @@ if minetest.get_modpath("ethereal") then end end +-- Support maple +if minetest.get_modpath("maple") then + timber_nodenames["maple:maple_tree"] = true + if chainsaw_leaves then + timber_nodenames["maple:maple_leaves"] = true + end +end + -- Support farming_plus if minetest.get_modpath("farming_plus") then if chainsaw_leaves then -- cgit v1.2.3