summaryrefslogtreecommitdiff
path: root/tubes.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-09-17 12:32:47 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-09-17 12:32:47 -0400
commit2efaa35700401d7b618bb07a3a51036229c37fa5 (patch)
treeb81f5712ea001f1a2258ae3f60a4e27b63c368f2 /tubes.lua
parent70284b1088084b85ca0a8d3772e98b9fc4fddb71 (diff)
downloadpipeworks-2efaa35700401d7b618bb07a3a51036229c37fa5.tar
pipeworks-2efaa35700401d7b618bb07a3a51036229c37fa5.tar.gz
pipeworks-2efaa35700401d7b618bb07a3a51036229c37fa5.tar.bz2
pipeworks-2efaa35700401d7b618bb07a3a51036229c37fa5.tar.xz
pipeworks-2efaa35700401d7b618bb07a3a51036229c37fa5.zip
Added test object for pneumatic tube autorouting code, made tubes connect to
it and any object that bears groups={tubedevice=1} (connects to any side)
Diffstat (limited to 'tubes.lua')
-rw-r--r--tubes.lua19
1 files changed, 18 insertions, 1 deletions
diff --git a/tubes.lua b/tubes.lua
index e7844a3..7a05d92 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -1,4 +1,21 @@
--- This file supplies pneumatic tubes.
+-- This file supplies pneumatic tubes and a 'test' device
+
+minetest.register_node("pipeworks:testobject", {
+ description = "Pneumatic tube test ojbect",
+ tiles = {
+ "pipeworks_testobject.png",
+ },
+ paramtype = "light",
+ groups = {snappy=3, tubedevice=1},
+ sounds = default.node_sound_wood_defaults(),
+ walkable = true,
+ after_place_node = function(pos)
+ tube_scanforobjects(pos)
+ end,
+ after_dig_node = function(pos)
+ tube_scanforobjects(pos)
+ end,
+})
-- tables