2012-07-18 19:54:11 +02:00
|
|
|
-- pipeworks mod by VanessaE
|
2012-07-12 23:52:35 +02:00
|
|
|
-- 2012-06-12
|
|
|
|
--
|
|
|
|
|
|
|
|
-- Entirely my own code. This mod merely supplies enough nodes to build
|
2012-07-18 19:54:11 +02:00
|
|
|
-- a bunch of pipeworks in all directions and with all types of junctions.
|
2012-07-12 23:52:35 +02:00
|
|
|
--
|
|
|
|
-- License: WTFPL
|
|
|
|
--
|
|
|
|
|
|
|
|
local DEBUG = 1
|
|
|
|
|
|
|
|
-- Local Functions
|
|
|
|
|
|
|
|
local dbg = function(s)
|
|
|
|
if DEBUG == 1 then
|
2012-07-18 19:54:11 +02:00
|
|
|
print('[PIPEWORKS] ' .. s)
|
2012-07-12 23:52:35 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Nodes (empty)
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:vertical", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (vertical)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
-- paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.15, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:horizontal", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (horizontal)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_plain.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.15, -0.15, 0.5, 0.15, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:junction_xy", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (junction between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.5, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
{ 0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:junction_xz", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (junction between X/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.15, -0.15, 0.5, 0.15, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
{ -0.1 , -0.1 , 0.1 , 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:bend_xy_down", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (downward bend between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_plain.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.5, 0.15, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.1 , 0.1 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:bend_xy_up", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (upward bend between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.15, -0.15, 0.5, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, 0.45 , -0.15, 0.15, 0.5, 0.15 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:bend_xz", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (bend between X/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.15, -0.15, 0.5, 0.15, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
{ -0.1 , -0.1 , 0.1 , 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:crossing_xz", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (4-way crossing between X/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.15, -0.5, 0.5, 0.15, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
|
|
|
|
{ -0.15, -0.15, -0.5 , 0.15, 0.15, -0.45 },
|
|
|
|
{ -0.1 , -0.1 , -0.45, 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:crossing_xy", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (4-way crossing between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_windowed_empty.png",
|
|
|
|
"pipeworks_windowed_empty.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.15, 0.5, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:crossing_xyz", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (6-way crossing between X/Y/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
|
|
|
|
{ -0.15, -0.15, -0.5 , 0.15, 0.15, -0.45 },
|
|
|
|
{ -0.1 , -0.1 , -0.45, 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- Nodes (full/loaded)
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:vertical_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (vertical)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
-- paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.15, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:horizontal_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (horizontal)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_plain.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.15, -0.15, 0.5, 0.15, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:junction_xy_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (junction between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.5, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
{ 0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:junction_xz_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (junction between X/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.15, -0.15, 0.5, 0.15, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
{ -0.1 , -0.1 , 0.1 , 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:bend_xy_down_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (downward bend between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_plain.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.5, 0.15, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.1 , 0.1 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:bend_xy_up_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (upward bend between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.15, -0.15, 0.5, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, 0.45 , -0.15, 0.15, 0.5, 0.15 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:bend_xz_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (bend between X/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_plain.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.15, -0.15, 0.5, 0.15, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
{ -0.1 , -0.1 , 0.1 , 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.1 , -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:crossing_xz_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (4-way crossing between X/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.15, -0.5, 0.5, 0.15, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
|
|
|
|
{ -0.15, -0.15, -0.5 , 0.15, 0.15, -0.45 },
|
|
|
|
{ -0.1 , -0.1 , -0.45, 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:crossing_xy_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (4-way crossing between X/Y axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_windowed_loaded.png",
|
|
|
|
"pipeworks_windowed_loaded.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.15, 0.5, 0.5, 0.15 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
minetest.register_node("pipeworks:crossing_xyz_loaded", {
|
2012-07-12 23:52:35 +02:00
|
|
|
description = "Pipe (6-way crossing between X/Y/Z axes)",
|
|
|
|
drawtype = "nodebox",
|
2012-07-18 19:54:11 +02:00
|
|
|
tile_images = { "pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png",
|
|
|
|
"pipeworks_pipe_end.png"
|
2012-07-12 23:52:35 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
paramtype = "light",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 },
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
|
|
|
|
{ -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
|
|
|
|
{ -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
|
|
|
|
{ 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
|
|
|
|
|
|
|
|
{ -0.15, -0.15, -0.5 , 0.15, 0.15, -0.45 },
|
|
|
|
{ -0.1 , -0.1 , -0.45, 0.1 , 0.1 , 0.45 },
|
|
|
|
{ -0.15, -0.15, 0.45, 0.15, 0.15, 0.5 },
|
|
|
|
|
|
|
|
{ -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
|
|
|
|
{ -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
|
|
|
|
{ -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
walkable = true,
|
|
|
|
})
|
|
|
|
|
2012-07-18 19:54:11 +02:00
|
|
|
print("[Pipeworks] Loaded!")
|