summaryrefslogtreecommitdiff
path: root/tubes.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-01-19 13:14:41 +0100
committerNovatux <nathanael.courant@laposte.net>2013-01-19 13:14:41 +0100
commitaea0207b7fa5c6a1024efe306f4fe05c70a6085e (patch)
tree214a1def744581c433ec21532d5e91ac42b314fb /tubes.lua
parent143aa0ee0404a05bc0f0a22bacd603df8c0df7f4 (diff)
downloadpipeworks-aea0207b7fa5c6a1024efe306f4fe05c70a6085e.tar
pipeworks-aea0207b7fa5c6a1024efe306f4fe05c70a6085e.tar.gz
pipeworks-aea0207b7fa5c6a1024efe306f4fe05c70a6085e.tar.bz2
pipeworks-aea0207b7fa5c6a1024efe306f4fe05c70a6085e.tar.xz
pipeworks-aea0207b7fa5c6a1024efe306f4fe05c70a6085e.zip
Added accelrator and teleport pipes
Diffstat (limited to 'tubes.lua')
-rw-r--r--tubes.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/tubes.lua b/tubes.lua
index 9789143..90e6ecf 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -371,3 +371,13 @@ register_tube("pipeworks:detector_tube_off","Detector tube segment",detector_pla
groups={mesecon=2},
mesecons={receptor={state="off",
rules=mesecons_rules}}})
+
+register_tube("pipeworks:accelerator_tube","Accelerator pneumatic tube segment",plain_textures,noctr_textures,end_textures,
+ short_texture,inv_texture,
+ {tube={can_go=function(pos,node,velocity,stack)
+ velocity.speed=velocity.speed+1
+ return meseadjlist
+ end}})
+
+modpath=minetest.get_modpath("pipeworks")
+dofile(modpath.."/teleport_tube.lua") \ No newline at end of file