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)
This commit is contained in:
Vanessa Ezekowitz
2012-09-17 12:32:47 -04:00
parent 70284b1088
commit 2efaa35700
3 changed files with 37 additions and 9 deletions

View File

@ -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