mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-30 23:30:35 +02:00
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:
committed by
Vanessa Ezekowitz
parent
3862070bfd
commit
ec416df794
@ -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
|
||||
|
Reference in New Issue
Block a user