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

This commit is contained in:
hdastwb
2013-07-19 01:36:55 -04:00
committed by Vanessa Ezekowitz
parent 3862070bfd
commit ec416df794
7 changed files with 530 additions and 333 deletions

View File

@ -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