diff options
author | Tim <t4im@users.noreply.github.com> | 2015-01-29 22:47:33 +0100 |
---|---|---|
committer | Tim <t4im@users.noreply.github.com> | 2015-01-29 22:47:33 +0100 |
commit | 4eff124ec8572046a81e5be10eb6e4dacd6e531b (patch) | |
tree | 5f82e1c3c7184c68aac523c330ea75b70001c4bd /signal_tubes.lua | |
parent | 5a79a60e0f592e34433139c16bb02aca65e38d63 (diff) |
fix crafts to only register when their respective tubes are enabled
also add the one-way tube recipe back
Diffstat (limited to 'signal_tubes.lua')
-rw-r--r-- | signal_tubes.lua | 34 |
1 files changed, 18 insertions, 16 deletions
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" } - }, -}) |