summaryrefslogtreecommitdiff
path: root/routing_tubes.lua
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-29 22:47:33 +0100
committerTim <t4im@users.noreply.github.com>2015-01-29 22:47:33 +0100
commit4eff124ec8572046a81e5be10eb6e4dacd6e531b (patch)
tree5f82e1c3c7184c68aac523c330ea75b70001c4bd /routing_tubes.lua
parent5a79a60e0f592e34433139c16bb02aca65e38d63 (diff)
downloadpipeworks-4eff124ec8572046a81e5be10eb6e4dacd6e531b.tar
pipeworks-4eff124ec8572046a81e5be10eb6e4dacd6e531b.tar.gz
pipeworks-4eff124ec8572046a81e5be10eb6e4dacd6e531b.tar.bz2
pipeworks-4eff124ec8572046a81e5be10eb6e4dacd6e531b.tar.xz
pipeworks-4eff124ec8572046a81e5be10eb6e4dacd6e531b.zip
fix crafts to only register when their respective tubes are enabled
also add the one-way tube recipe back
Diffstat (limited to 'routing_tubes.lua')
-rw-r--r--routing_tubes.lua46
1 files changed, 27 insertions, 19 deletions
diff --git a/routing_tubes.lua b/routing_tubes.lua
index 3533bad..ebd451f 100644
--- a/routing_tubes.lua
+++ b/routing_tubes.lua
@@ -26,6 +26,16 @@ if pipeworks.enable_accelerator_tube then
return pipeworks.notvel(pipeworks.meseadjlist, velocity)
end}
})
+
+ minetest.register_craft( {
+ output = "pipeworks:accelerator_tube_1 2",
+ recipe = {
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
+ { "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" },
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
+ },
+ })
+
end
if pipeworks.enable_crossing_tube then
@@ -44,6 +54,15 @@ if pipeworks.enable_crossing_tube then
return {velocity}
end}
})
+
+ minetest.register_craft( {
+ output = "pipeworks:crossing_tube_1 5",
+ recipe = {
+ { "", "pipeworks:tube_1", "" },
+ { "pipeworks:tube_1", "pipeworks:tube_1", "pipeworks:tube_1" },
+ { "", "pipeworks:tube_1", "" }
+ },
+ })
end
if pipeworks.enable_one_way_tube then
@@ -71,23 +90,12 @@ if pipeworks.enable_one_way_tube then
priority = 75 -- Higher than normal tubes, but lower than receivers
},
})
-
+ minetest.register_craft({
+ output = "pipeworks:one_way_tube 2",
+ recipe = {
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
+ { "group:stick", "default:mese_crystal", "homedecor:plastic_sheeting" },
+ { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
+ },
+ })
end
-
-minetest.register_craft( {
- output = "pipeworks:accelerator_tube_1 2",
- recipe = {
- { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
- { "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" },
- { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
- },
-})
-
-minetest.register_craft( {
- output = "pipeworks:crossing_tube_1 5",
- recipe = {
- { "", "pipeworks:tube_1", "" },
- { "pipeworks:tube_1", "pipeworks:tube_1", "pipeworks:tube_1" },
- { "", "pipeworks:tube_1", "" }
- },
-})