summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-10 21:03:46 +0100
committerShadowNinja <shadowninja@minetest.net>2015-01-12 17:51:55 -0500
commit0114feaf04e54ca711b9ce7770b322e1550472a7 (patch)
treed6f851aa7e82b2c64730802edc88d2a8d86cae18
parent2e04374de8bd0e39850e0454742e3c411fab6dac (diff)
Add more nodes to the chainsaw
-rw-r--r--technic/tools/chainsaw.lua26
1 files changed, 25 insertions, 1 deletions
diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua
index fcebde0..fed15f3 100644
--- a/technic/tools/chainsaw.lua
+++ b/technic/tools/chainsaw.lua
@@ -14,11 +14,13 @@ local timber_nodenames = {
["default:cactus"] = true,
["default:tree"] = true,
["default:apple"] = true,
+ ["default:pine"] = true,
}
if chainsaw_leaves then
timber_nodenames["default:leaves"] = true
timber_nodenames["default:jungleleaves"] = true
+ timber_nodenames["default:pine_needles"] = true
end
-- technic_worldgen defines rubber trees if moretrees isn't installed
@@ -33,6 +35,8 @@ end
-- Support moretrees if it is there
if minetest.get_modpath("moretrees") then
+ timber_nodenames["moretrees:acacia_tree_trunk"] = true
+ timber_nodenames["moretrees:acacia_tree_trunk_sideways"] = true
timber_nodenames["moretrees:apple_tree_trunk"] = true
timber_nodenames["moretrees:apple_tree_trunk_sideways"] = true
timber_nodenames["moretrees:beech_trunk"] = true
@@ -59,6 +63,7 @@ if minetest.get_modpath("moretrees") then
timber_nodenames["moretrees:jungletree_trunk_sideways"] = true
if chainsaw_leaves then
+ timber_nodenames["moretrees:acacia_leaves"] = true
timber_nodenames["moretrees:apple_tree_leaves"] = true
timber_nodenames["moretrees:oak_leaves"] = true
timber_nodenames["moretrees:fir_leaves"] = true
@@ -127,7 +132,10 @@ end
-- Support farming_plus
if minetest.get_modpath("farming_plus") then
if chainsaw_leaves then
- timber_nodenames["farming_plus:cocoa_leaves"] = true
+ timber_nodenames["farming_plus:banana_leaves"] = true
+ timber_nodenames["farming_plus:banana"] = true
+ timber_nodenames["farming_plus:cocoa_leaves"] = true
+ timber_nodenames["farming_plus:cocoa"] = true
end
end
@@ -138,6 +146,22 @@ if minetest.get_modpath("nature") then
end
end
+-- Support snow
+if minetest.get_modpath("snow") then
+ if chainsaw_leaves then
+ timber_nodenames["snow:needles"] = true
+ timber_nodenames["snow:needles_decorated"] = true
+ timber_nodenames["snow:star"] = true
+ end
+end
+
+-- Support vines (also generated by moretrees if available)
+if minetest.get_modpath("vines") then
+ if chainsaw_leaves then
+ timber_nodenames["vines:vines"] = true
+ end
+end
+
local S = technic.getter
technic.register_power_tool("technic:chainsaw", chainsaw_max_charge)