end
local function is_tube(nodename)
- return in_table(tubenodes,nodename)
+ return in_table(pipeworks.tubenodes,nodename)
end
if pipeworks == nil then
return {x=pos.x+vect.x,y=pos.y+vect.y,z=pos.z+vect.z}
end
-adjlist={{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=0,y=1,z=0},{x=0,y=-1,z=0},{x=1,y=0,z=0},{x=-1,y=0,z=0}}
+local adjlist={{x=0,y=0,z=1},{x=0,y=0,z=-1},{x=0,y=1,z=0},{x=0,y=-1,z=0},{x=1,y=0,z=0},{x=-1,y=0,z=0}}
local function notvel(tbl,vel)
local tbl2={}
-- This file supplies the various kinds of pneumatic tubes
-tubenodes={}
+pipeworks.tubenodes={}
minetest.register_alias("pipeworks:tube", "pipeworks:tube_000000")
wscale = {x=1,y=1,z=0.01}
end
- table.insert(tubenodes,name.."_"..tname)
+ table.insert(pipeworks.tubenodes,name.."_"..tname)
local nodedef={
description = tubedesc,