forked from mtcontrib/pipeworks
fix crafts to only register when their respective tubes are enabled
also add the one-way tube recipe back
This commit is contained in:
parent
5a79a60e0f
commit
4eff124ec8
@ -26,6 +26,16 @@ if pipeworks.enable_accelerator_tube then
|
|||||||
return pipeworks.notvel(pipeworks.meseadjlist, velocity)
|
return pipeworks.notvel(pipeworks.meseadjlist, velocity)
|
||||||
end}
|
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
|
end
|
||||||
|
|
||||||
if pipeworks.enable_crossing_tube then
|
if pipeworks.enable_crossing_tube then
|
||||||
@ -44,6 +54,15 @@ if pipeworks.enable_crossing_tube then
|
|||||||
return {velocity}
|
return {velocity}
|
||||||
end}
|
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
|
end
|
||||||
|
|
||||||
if pipeworks.enable_one_way_tube then
|
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
|
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
|
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", "" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
@ -53,6 +53,15 @@ if pipeworks.enable_detector_tube then
|
|||||||
mesecons = {receptor = {state = "off",
|
mesecons = {receptor = {state = "off",
|
||||||
rules = pipeworks.mesecons_rules}}
|
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
|
end
|
||||||
|
|
||||||
if pipeworks.enable_conductor_tube then
|
if pipeworks.enable_conductor_tube then
|
||||||
@ -88,22 +97,15 @@ if pipeworks.enable_conductor_tube then
|
|||||||
rules = pipeworks.mesecons_rules,
|
rules = pipeworks.mesecons_rules,
|
||||||
offstate = "pipeworks:conductor_tube_off_#id"}}
|
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
|
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" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
@ -110,25 +110,25 @@ if pipeworks.enable_mese_tube then
|
|||||||
return 0
|
return 0
|
||||||
end,
|
end,
|
||||||
}, true) -- Must use old tubes, since the textures are rotated with 6d ones
|
}, true) -- Must use old tubes, since the textures are rotated with 6d ones
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "pipeworks:mese_tube_1 2",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
||||||
|
{ "", "default:mese_crystal", "" },
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "pipeworks:mese_tube_000000",
|
||||||
|
recipe = {
|
||||||
|
"pipeworks:tube_1",
|
||||||
|
"default:mese_crystal_fragment",
|
||||||
|
"default:mese_crystal_fragment",
|
||||||
|
"default:mese_crystal_fragment",
|
||||||
|
"default:mese_crystal_fragment"
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "pipeworks:mese_tube_1 2",
|
|
||||||
recipe = {
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
||||||
{ "", "default:mese_crystal", "" },
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = "pipeworks:mese_tube_000000",
|
|
||||||
recipe = {
|
|
||||||
"pipeworks:tube_1",
|
|
||||||
"default:mese_crystal_fragment",
|
|
||||||
"default:mese_crystal_fragment",
|
|
||||||
"default:mese_crystal_fragment",
|
|
||||||
"default:mese_crystal_fragment"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
110
vacuum_tubes.lua
110
vacuum_tubes.lua
@ -27,6 +27,31 @@ if pipeworks.enable_sand_tube then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "pipeworks:sand_tube_1 2",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
||||||
|
{ "default:sand", "default:sand", "default:sand" },
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "pipeworks:sand_tube_1 2",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
||||||
|
{ "default:desert_sand", "default:desert_sand", "default:desert_sand" },
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "pipeworks:sand_tube_1",
|
||||||
|
recipe = {
|
||||||
|
{ "default:desert_sand", "pipeworks:tube_1", "default:desert_sand" },
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
if pipeworks.enable_mese_sand_tube then
|
if pipeworks.enable_mese_sand_tube then
|
||||||
@ -87,59 +112,34 @@ if pipeworks.enable_mese_sand_tube then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "pipeworks:mese_sand_tube_1 2",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
||||||
|
{ "default:sand", "default:mese_crystal", "default:sand" },
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "pipeworks:mese_sand_tube_1 2",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
||||||
|
{ "default:desert_sand", "default:mese_crystal", "default:desert_sand" },
|
||||||
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "pipeworks:mese_sand_tube_1",
|
||||||
|
recipe = {
|
||||||
|
"pipeworks:sand_tube_1",
|
||||||
|
"default:mese_crystal_fragment",
|
||||||
|
"default:mese_crystal_fragment",
|
||||||
|
"default:mese_crystal_fragment",
|
||||||
|
"default:mese_crystal_fragment"
|
||||||
|
},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "pipeworks:sand_tube_1 2",
|
|
||||||
recipe = {
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
||||||
{ "default:sand", "default:sand", "default:sand" },
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "pipeworks:sand_tube_1 2",
|
|
||||||
recipe = {
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
||||||
{ "default:desert_sand", "default:desert_sand", "default:desert_sand" },
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "pipeworks:sand_tube_1",
|
|
||||||
recipe = {
|
|
||||||
{ "default:desert_sand", "pipeworks:tube_1", "default:desert_sand" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "pipeworks:mese_sand_tube_1 2",
|
|
||||||
recipe = {
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
||||||
{ "default:sand", "default:mese_crystal", "default:sand" },
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "pipeworks:mese_sand_tube_1 2",
|
|
||||||
recipe = {
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
||||||
{ "default:desert_sand", "default:mese_crystal", "default:desert_sand" },
|
|
||||||
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = "pipeworks:mese_sand_tube_1",
|
|
||||||
recipe = {
|
|
||||||
"pipeworks:sand_tube_1",
|
|
||||||
"default:mese_crystal_fragment",
|
|
||||||
"default:mese_crystal_fragment",
|
|
||||||
"default:mese_crystal_fragment",
|
|
||||||
"default:mese_crystal_fragment"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
Loading…
Reference in New Issue
Block a user