From 2d8ff9f889450fb5c36016276997544aae98a350 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 23 Nov 2018 10:39:11 -0500 Subject: update digistuff, farming-redo, homedecor, hotbar, roads, pipeworks, prefab_redo, rgblightstone, signs_lib, street_signs, technic, unifieddyes, and worldedit --- pipeworks/autocrafter.lua | 2 +- pipeworks/lua_tube.lua | 24 ++++++++++++++++++++++-- pipeworks/signal_tubes.lua | 5 ++++- 3 files changed, 27 insertions(+), 4 deletions(-) (limited to 'pipeworks') diff --git a/pipeworks/autocrafter.lua b/pipeworks/autocrafter.lua index 5d554c1..ebde77c 100644 --- a/pipeworks/autocrafter.lua +++ b/pipeworks/autocrafter.lua @@ -407,7 +407,7 @@ minetest.register_craft( { output = "pipeworks:autocrafter 2", recipe = { { "default:steel_ingot", "default:mese_crystal", "default:steel_ingot" }, - { "basic_materials:plastic_sheeting", "default:steel_ingot", "basic_materials:plastic_sheeting" }, + { "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }, { "default:steel_ingot", "default:mese_crystal", "default:steel_ingot" } }, }) 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 diff --git a/pipeworks/signal_tubes.lua b/pipeworks/signal_tubes.lua index 7048ebb..1d8daae 100644 --- a/pipeworks/signal_tubes.lua +++ b/pipeworks/signal_tubes.lua @@ -102,7 +102,10 @@ if digiline_enabled and pipeworks.enable_digiline_detector_tube then receptor = {}, effector = { action = function(pos,node,channel,msg) end - } + }, + wire = { + rules = pipeworks.digilines_rules + }, }, }, }) -- cgit v1.2.3