Added stairsplus/circular saw support
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 8 Apr 2013 02:22:01 +0000 (22:22 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 8 Apr 2013 02:42:01 +0000 (22:42 -0400)
depends.txt
node_defs.lua

index d1473e188597fa49e906235330eb12c1fc8153b9..59c3cba3fcb17171a32ea244f9840c4a30d815ec 100644 (file)
@@ -1,2 +1,4 @@
 default
 plants_lib
+moreblocks
+
index a56795d0683c3ad9c4d1354515b0c86209d75fa6..e383e506e05cd5c5ede8f4cc3005eff08d3b603a 100644 (file)
@@ -95,6 +95,57 @@ for i in ipairs(moretrees.treelist) do
                                }
                        },
                })
+
+               register_stair_slab_panel_micro(
+                       "moretrees",
+                       treename.."_trunk",
+                       "moretrees:"..treename.."_trunk",
+                       { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1 },
+                       {       "moretrees_"..treename.."_trunk_top.png",
+                               "moretrees_"..treename.."_trunk_top.png",
+                               "moretrees_"..treename.."_trunk.png"
+                       },
+                       treedesc.." Trunk",
+                       treename.."_trunk",
+                       "facedir",
+                       0
+               )
+
+               register_stair_slab_panel_micro(
+                       "moretrees",
+                       treename.."_trunk_sideways",
+                       "moretrees:"..treename.."_trunk_sideways",
+                       { snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, not_in_creative_inventory=1 },
+                       {       "moretrees_"..treename.."_trunk.png^[transformR90",
+                               "moretrees_"..treename.."_trunk.png^[transformR90",
+                               "moretrees_"..treename.."_trunk_top.png",
+                               "moretrees_"..treename.."_trunk_top.png",
+                               "moretrees_"..treename.."_trunk.png^[transformR90",
+                               "moretrees_"..treename.."_trunk.png^[transformR90"
+                       },
+                       "Sideways "..treedesc.." Trunk",
+                       treename.."_trunk_sideways",
+                       "facedir",
+                       0
+               )
+
+
+               register_stair_slab_panel_micro(
+                       "moretrees",
+                       treename.."_planks",
+                       "moretrees:"..treename.."_planks",
+                       { snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, not_in_creative_inventory=1 },
+                       { "moretrees_"..treename.."_wood.png" },
+                       treedesc.." Planks",
+                       treename.."_planks",
+                       "facedir",
+                       0
+               )
+
+               table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_trunk")
+               table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_trunk_sideways")
+               table.insert(circular_saw.known_stairs, "moretrees:"..treename.."_planks")
+
        end
 
        if (fruit ~= nil) then