diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-01 16:30:21 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-01 16:30:21 -0500 |
commit | 1a562d23a85568ec111da07411958c09b0b95117 (patch) | |
tree | 5d173ba7346ba5f366fdaacf8d65a71b7f4c796f /devices.lua | |
parent | 6cca6f9857084b00ab420bdfbcc2b68b07195675 (diff) |
added a "sealed" entry/exit panel (really just a horizontal pipe with a metal
panel overlayed into the middle). Also, tweaked pipes to always drop the
empty ones.
Diffstat (limited to 'devices.lua')
-rw-r--r-- | devices.lua | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/devices.lua b/devices.lua index 513104a..fadba09 100644 --- a/devices.lua +++ b/devices.lua @@ -213,6 +213,48 @@ minetest.register_node("pipeworks:spigot", { } }) +-- sealed pipe entry/exit (decorative horizontal pipe passing through a metal +-- wall, for use in places where walls should look like they're airtight) + + local airtightboxes = {} + pipe_addbox(airtightboxes, pipe_frontstub) + pipe_addbox(airtightboxes, pipe_backstub) + pipe_addbox(airtightboxes, entry_panel) + +minetest.register_node("pipeworks:entry_panel", { + description = "Airtight Pipe entry/exit", + drawtype = "nodebox", + tiles = { + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_plain.png", + "pipeworks_pipe_end_empty.png", + "pipeworks_pipe_end_empty.png" + }, + paramtype = "light", + paramtype2 = "facedir", + groups = {snappy=3, pipe=1}, + sounds = default.node_sound_wood_defaults(), + walkable = true, + stack_max = 99, + after_place_node = function(pos) + pipe_scanforobjects(pos) + end, + after_dig_node = function(pos) + pipe_scanforobjects(pos) + end, + pipelike=1, + on_construct = function(pos) + local meta = minetest.env:get_meta(pos) + meta:set_int("pipelike",1) + end, + node_box = { + type = "fixed", + fixed = airtightboxes, + }, +}) + -- tanks for fill = 0, 10 do |