summaryrefslogtreecommitdiff
path: root/node_defs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'node_defs.lua')
-rw-r--r--node_defs.lua210
1 files changed, 106 insertions, 104 deletions
diff --git a/node_defs.lua b/node_defs.lua
index 9230ad1..b02a6a2 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -86,110 +86,112 @@ for i in ipairs(moretrees.treelist) do
},
})
- register_stair(
- "moretrees",
- treename.."_trunk",
- "moretrees:"..treename.."_trunk",
- { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_stair=1 },
- { "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk.png"
- },
- treedesc.." Trunk",
- treename.."_trunk",
- 0
- )
-
- register_slab(
- "moretrees",
- treename.."_trunk",
- "moretrees:"..treename.."_trunk",
- { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_slab=1 },
- { "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk.png"
- },
- treedesc.." Trunk",
- treename.."_trunk",
- 0
- )
-
- register_panel(
- "moretrees",
- treename.."_trunk",
- "moretrees:"..treename.."_trunk",
- { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_panel=1 },
- { "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk.png"
- },
- treedesc.." Trunk",
- treename.."_trunk",
- 0
- )
-
- register_micro(
- "moretrees",
- treename.."_trunk",
- "moretrees:"..treename.."_trunk",
- { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_micro=1 },
- { "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk_top.png",
- "moretrees_"..treename.."_trunk.png"
- },
- treedesc.." Trunk",
- treename.."_trunk",
- 0
- )
-
- register_stair(
- "moretrees",
- treename.."_planks",
- "moretrees:"..treename.."_planks",
- { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_stair=1 },
- { "moretrees_"..treename.."_wood.png" },
- treedesc.." Planks",
- treename.."_planks",
- 0
- )
-
- register_slab(
- "moretrees",
- treename.."_planks",
- "moretrees:"..treename.."_planks",
- { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_slab=1 },
- { "moretrees_"..treename.."_wood.png" },
- treedesc.." Planks",
- treename.."_planks",
- 0
- )
-
- register_panel(
- "moretrees",
- treename.."_planks",
- "moretrees:"..treename.."_planks",
- { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_panel=1 },
- { "moretrees_"..treename.."_wood.png" },
- treedesc.." Planks",
- treename.."_planks",
- 0
- )
-
- register_micro(
- "moretrees",
- treename.."_planks",
- "moretrees:"..treename.."_planks",
- { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_micro=1 },
- { "moretrees_"..treename.."_wood.png" },
- treedesc.." Planks",
- treename.."_planks",
- 0
- )
-
-
- table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_trunk")
- table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks")
-
+ if minetest.get_modpath("moreblocks") and moretrees.enable_stairsplus then
+
+ register_stair(
+ "moretrees",
+ treename.."_trunk",
+ "moretrees:"..treename.."_trunk",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_stair=1 },
+ { "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk.png"
+ },
+ treedesc.." Trunk",
+ treename.."_trunk",
+ 0
+ )
+
+ register_slab(
+ "moretrees",
+ treename.."_trunk",
+ "moretrees:"..treename.."_trunk",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_slab=1 },
+ { "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk.png"
+ },
+ treedesc.." Trunk",
+ treename.."_trunk",
+ 0
+ )
+
+ register_panel(
+ "moretrees",
+ treename.."_trunk",
+ "moretrees:"..treename.."_trunk",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_panel=1 },
+ { "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk.png"
+ },
+ treedesc.." Trunk",
+ treename.."_trunk",
+ 0
+ )
+
+ register_micro(
+ "moretrees",
+ treename.."_trunk",
+ "moretrees:"..treename.."_trunk",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1, tree_micro=1 },
+ { "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk_top.png",
+ "moretrees_"..treename.."_trunk.png"
+ },
+ treedesc.." Trunk",
+ treename.."_trunk",
+ 0
+ )
+
+ register_stair(
+ "moretrees",
+ treename.."_planks",
+ "moretrees:"..treename.."_planks",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_stair=1 },
+ { "moretrees_"..treename.."_wood.png" },
+ treedesc.." Planks",
+ treename.."_planks",
+ 0
+ )
+
+ register_slab(
+ "moretrees",
+ treename.."_planks",
+ "moretrees:"..treename.."_planks",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_slab=1 },
+ { "moretrees_"..treename.."_wood.png" },
+ treedesc.." Planks",
+ treename.."_planks",
+ 0
+ )
+
+ register_panel(
+ "moretrees",
+ treename.."_planks",
+ "moretrees:"..treename.."_planks",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_panel=1 },
+ { "moretrees_"..treename.."_wood.png" },
+ treedesc.." Planks",
+ treename.."_planks",
+ 0
+ )
+
+ register_micro(
+ "moretrees",
+ treename.."_planks",
+ "moretrees:"..treename.."_planks",
+ { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1, wood_micro=1 },
+ { "moretrees_"..treename.."_wood.png" },
+ treedesc.." Planks",
+ treename.."_planks",
+ 0
+ )
+
+
+ table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_trunk")
+ table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks")
+ end
end
if (fruit ~= nil) then