diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-11-23 10:39:11 -0500 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-11-23 10:39:11 -0500 |
commit | 2d8ff9f889450fb5c36016276997544aae98a350 (patch) | |
tree | 636ddf5e6a9b444a60d7cab82e93ccffb037355d /pipeworks/lua_tube.lua | |
parent | 646d696c62a6b408100e65164b5cd71a4793ab9b (diff) | |
download | dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.gz dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.bz2 dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.tar.xz dreambuilder_modpack-2d8ff9f889450fb5c36016276997544aae98a350.zip |
update digistuff, farming-redo, homedecor, hotbar, roads,
pipeworks, prefab_redo, rgblightstone, signs_lib, street_signs,
technic, unifieddyes, and worldedit
Diffstat (limited to 'pipeworks/lua_tube.lua')
-rw-r--r-- | pipeworks/lua_tube.lua | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/pipeworks/lua_tube.lua b/pipeworks/lua_tube.lua index 8cc4468..941ef92 100644 --- a/pipeworks/lua_tube.lua +++ b/pipeworks/lua_tube.lua @@ -37,6 +37,23 @@ local rules = { white = {x = 0, y = 0, z = 1, name = "white"}, } +local digiline_rules_luatube = { + {x=0, y=0, z=-1}, + {x=1, y=0, z=0}, + {x=-1, y=0, z=0}, + {x=0, y=0, z=1}, + {x=1, y=1, z=0}, + {x=1, y=-1, z=0}, + {x=-1, y=1, z=0}, + {x=-1, y=-1, z=0}, + {x=0, y=1, z=1}, + {x=0, y=-1, z=1}, + {x=0, y=1, z=-1}, + {x=0, y=-1, z=-1}, + -- vertical connectivity + {x=0, y=1, z=0}, + {x=0, y=-1, z=0}, +} ------------------ -- Action stuff -- @@ -303,7 +320,7 @@ local function get_digiline_send(pos) end minetest.after(0, function() - digilines.receptor_send(pos, digiline.rules.default, channel, msg) + digilines.receptor_send(pos, digiline_rules_luatube, channel, msg) end) return true end @@ -540,7 +557,10 @@ local digiline = { action = function(pos, node, channel, msg) run(pos, {type = "digiline", channel = channel, msg = msg}) end - } + }, + wire = { + rules = pipeworks.digilines_rules + }, } local function on_receive_fields(pos, form_name, fields, sender) if not fields.program then |