summaryrefslogtreecommitdiff
path: root/tubes.lua
diff options
context:
space:
mode:
authorhdastwb <hdastwb@hdastwb.heliohost.org>2013-07-19 01:36:55 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-07-19 19:16:26 -0400
commitec416df7945f85bdb6fc50369b7049e52d96e791 (patch)
tree93b42d89c37900f9f64bc456806ad9e61d3bd0a7 /tubes.lua
parent3862070bfd590a45272a267101baa37686e12a6d (diff)
downloadpipeworks-ec416df7945f85bdb6fc50369b7049e52d96e791.tar
pipeworks-ec416df7945f85bdb6fc50369b7049e52d96e791.tar.gz
pipeworks-ec416df7945f85bdb6fc50369b7049e52d96e791.tar.bz2
pipeworks-ec416df7945f85bdb6fc50369b7049e52d96e791.tar.xz
pipeworks-ec416df7945f85bdb6fc50369b7049e52d96e791.zip
added support for 6d facedir for all tube components, changed autoplace.lua to follow tubes.connect_sides rather than having each component coded individually, and added support for placing deployers and node breakers facing vertically
Diffstat (limited to 'tubes.lua')
-rw-r--r--tubes.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tubes.lua b/tubes.lua
index d38cf29..787001d 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -180,6 +180,7 @@ for zp = 0, 1 do
stack_max = 99,
drop = name.."_000000",
tubelike=1,
+ tube = {connect_sides={front=1, back=1, left=1, right=1, top=1, bottom=1}},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_int("tubelike",1)
@@ -210,6 +211,10 @@ for zp = 0, 1 do
for group,val in pairs(value) do
nodedef.groups[group]=val
end
+ elseif key=="tube" then
+ for key,val in pairs(value) do
+ nodedef.tube[key]=val
+ end
elseif type(value)=="table" then
nodedef[key]=pipeworks_replace_name(value,"#id",tname)
elseif type(value)=="string" then