From 4eff124ec8572046a81e5be10eb6e4dacd6e531b Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Jan 2015 22:47:33 +0100 Subject: fix crafts to only register when their respective tubes are enabled also add the one-way tube recipe back --- signal_tubes.lua | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'signal_tubes.lua') diff --git a/signal_tubes.lua b/signal_tubes.lua index aff486f..44605c8 100644 --- a/signal_tubes.lua +++ b/signal_tubes.lua @@ -53,6 +53,15 @@ if pipeworks.enable_detector_tube then mesecons = {receptor = {state = "off", rules = pipeworks.mesecons_rules}} }) + + minetest.register_craft( { + output = "pipeworks:conductor_tube_off_1 6", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "mesecons:mesecon", "mesecons:mesecon", "mesecons:mesecon" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, + }) end if pipeworks.enable_conductor_tube then @@ -88,22 +97,15 @@ if pipeworks.enable_conductor_tube then rules = pipeworks.mesecons_rules, offstate = "pipeworks:conductor_tube_off_#id"}} }) + + minetest.register_craft( { + output = "pipeworks:detector_tube_off_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "mesecons:mesecon", "mesecons_materials:silicon", "mesecons:mesecon" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, + }) end -minetest.register_craft( { - output = "pipeworks:conductor_tube_off_1 6", - recipe = { - { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, - { "mesecons:mesecon", "mesecons:mesecon", "mesecons:mesecon" }, - { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } - }, -}) -minetest.register_craft( { - output = "pipeworks:detector_tube_off_1 2", - recipe = { - { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, - { "mesecons:mesecon", "mesecons_materials:silicon", "mesecons:mesecon" }, - { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } - }, -}) -- cgit v1.2.3