Change recipes
This commit is contained in:
parent
15f64201b6
commit
a47d4c9040
2 changed files with 21 additions and 14 deletions
31
init.lua
31
init.lua
|
|
@ -48,7 +48,7 @@ local get_hotbar_bg = function(x, y) return "" end
|
|||
local sounds
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
steel_ingot = "default:steel_ingot"
|
||||
steel_ingot = "technic:stainless_steel_ingot"
|
||||
mese_crystal_fragment = "default:mese_crystal_fragment"
|
||||
get_hotbar_bg = default.get_hotbar_bg
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
|
|
@ -156,12 +156,11 @@ local function register_air_tank(name, desc, color, uses, material)
|
|||
|
||||
minetest.register_craft({
|
||||
recipe = {
|
||||
{"", material, ""},
|
||||
{material, "airtanks:compressor", material},
|
||||
{material, "technic:rubber", material},
|
||||
{material, "default:mese_crystal_fragment", material},
|
||||
{"", material, ""},
|
||||
},
|
||||
output = "airtanks:empty_"..name.."_tank",
|
||||
replacements = {{"airtanks:compressor", "airtanks:compressor"}},
|
||||
})
|
||||
|
||||
end
|
||||
|
|
@ -212,6 +211,7 @@ local function register_air_tank_2(name, desc, color, uses, material)
|
|||
minetest.register_craft({
|
||||
recipe = {
|
||||
-- Use 2 singles to make a double
|
||||
{"technic:rubber", "pipeworks:pipe_1_empty"},
|
||||
{"airtanks:empty_"..name.."_tank", "airtanks:empty_"..name.."_tank"},
|
||||
},
|
||||
output = "airtanks:empty_"..name.."_tank_2",
|
||||
|
|
@ -220,6 +220,7 @@ local function register_air_tank_2(name, desc, color, uses, material)
|
|||
minetest.register_craft({
|
||||
recipe = {
|
||||
-- Use 2 singles to make a double
|
||||
{"technic:rubber", "pipeworks:pipe_1_empty"},
|
||||
{"airtanks:"..name.."_tank", "airtanks:"..name.."_tank"},
|
||||
},
|
||||
output = "airtanks:"..name.."_tank_2",
|
||||
|
|
@ -273,6 +274,8 @@ local function register_air_tank_3(name, desc, color, uses, material)
|
|||
minetest.register_craft({
|
||||
recipe = {
|
||||
-- Use 3 singles to make a triple
|
||||
{"", "pipeworks:pipe_1_empty", ""},
|
||||
{"technic:rubber", "pipeworks:pipe_1_empty", "technic:rubber"},
|
||||
{"airtanks:empty_"..name.."_tank", "airtanks:empty_"..name.."_tank", "airtanks:empty_"..name.."_tank"},
|
||||
},
|
||||
output = "airtanks:empty_"..name.."_tank_3",
|
||||
|
|
@ -280,7 +283,8 @@ local function register_air_tank_3(name, desc, color, uses, material)
|
|||
minetest.register_craft({
|
||||
recipe = {
|
||||
-- Use 1 single and 1 double to make a triple
|
||||
{"airtanks:empty_"..name.."_tank", "airtanks:empty_"..name.."_tank_2", ""},
|
||||
{"technic:rubber", "pipeworks:pipe_1_empty"},
|
||||
{"airtanks:empty_"..name.."_tank", "airtanks:empty_"..name.."_tank_2"},
|
||||
},
|
||||
output = "airtanks:empty_"..name.."_tank_3",
|
||||
})
|
||||
|
|
@ -288,6 +292,8 @@ local function register_air_tank_3(name, desc, color, uses, material)
|
|||
minetest.register_craft({
|
||||
recipe = {
|
||||
-- Use 3 singles to make a triple
|
||||
{"", "pipeworks:pipe_1_empty", ""},
|
||||
{"technic:rubber", "pipeworks:pipe_1_empty", "technic:rubber"},
|
||||
{"airtanks:"..name.."_tank", "airtanks:"..name.."_tank", "airtanks:"..name.."_tank"},
|
||||
},
|
||||
output = "airtanks:"..name.."_tank_3",
|
||||
|
|
@ -295,7 +301,8 @@ local function register_air_tank_3(name, desc, color, uses, material)
|
|||
minetest.register_craft({
|
||||
recipe = {
|
||||
-- Use 1 single and 1 double to make a triple
|
||||
{"airtanks:"..name.."_tank", "airtanks:"..name.."_tank_2", ""},
|
||||
{"technic:rubber", "pipeworks:pipe_1_empty"},
|
||||
{"airtanks:"..name.."_tank", "airtanks:"..name.."_tank_2"},
|
||||
},
|
||||
output = "airtanks:"..name.."_tank_3",
|
||||
})
|
||||
|
|
@ -587,9 +594,9 @@ minetest.register_node("airtanks:compressor", {
|
|||
|
||||
minetest.register_craft({
|
||||
recipe = {
|
||||
{"", steel_ingot, ""},
|
||||
{steel_ingot, mese_crystal_fragment, steel_ingot},
|
||||
{"group:wood", steel_ingot, "group:wood"},
|
||||
{"technic:rubber", mese_crystal_fragment, "technic:rubber"},
|
||||
{steel_ingot, "technic:machine_casing", steel_ingot},
|
||||
{"basic_materials:gear_steel", steel_ingot, "mesecons_pistons:piston_normal_off"},
|
||||
},
|
||||
output = "airtanks:compressor"
|
||||
})
|
||||
|
|
@ -614,9 +621,9 @@ minetest.register_craftitem("airtanks:breathing_tube", {
|
|||
|
||||
minetest.register_craft({
|
||||
recipe = {
|
||||
{"", "group:stick", ""},
|
||||
{"", "group:stick", ""},
|
||||
{"group:wood", "group:stick", ""},
|
||||
{"", "pipeworks:pipe_1_empty", ""},
|
||||
{"", "pipeworks:pipe_1_empty", ""},
|
||||
{"technic:rubber", "", ""},
|
||||
},
|
||||
output = "airtanks:breathing_tube"
|
||||
})
|
||||
|
|
|
|||
4
mod.conf
4
mod.conf
|
|
@ -1,4 +1,4 @@
|
|||
name = airtanks
|
||||
description = Provides pressurized air tanks for extended underwater excursions
|
||||
depends =
|
||||
optional_depends = doc, default, mcl_formspec, mcl_sounds, mcl_core, mcl_copper, mcl_armor
|
||||
depends = technic, basic_materials, mesecons_pistons, pipeworks
|
||||
optional_depends = doc, default, mcl_formspec, mcl_sounds, mcl_core, mcl_copper, mcl_armor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue