2018-06-18 07:09:43 +00:00
|
|
|
|
2018-06-22 11:51:27 +00:00
|
|
|
--*****************--
|
|
|
|
-- MACHINE RECIPES --
|
|
|
|
--*****************--
|
|
|
|
|
2018-06-18 07:09:43 +00:00
|
|
|
--------------
|
|
|
|
-- Alloying --
|
|
|
|
--------------
|
|
|
|
|
2018-06-21 13:08:32 +00:00
|
|
|
local alloy_recipes = {
|
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:iron_ingot", "elepower_dynamics:coal_dust 4" },
|
|
|
|
output = "default:steel_ingot",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:copper_ingot 2", "default:tin_ingot" },
|
|
|
|
output = "default:bronze_ingot 3",
|
2018-06-21 14:35:39 +00:00
|
|
|
},
|
|
|
|
{
|
2018-09-25 13:19:59 +00:00
|
|
|
recipe = { "elepower_dynamics:iron_ingot 3", "elepower_dynamics:nickel_ingot" },
|
2018-06-21 14:35:39 +00:00
|
|
|
output = "elepower_dynamics:invar_ingot 4",
|
2018-06-22 11:51:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:gold_ingot 2", "elepower_dynamics:invar_ingot" },
|
|
|
|
output = "elepower_dynamics:electrum_ingot 3",
|
2018-07-01 15:56:31 +00:00
|
|
|
},
|
|
|
|
{
|
2018-12-12 13:46:19 +00:00
|
|
|
recipe = { "basic_materials:silicon", "elepower_dynamics:coal_dust 2" },
|
2018-07-01 15:56:31 +00:00
|
|
|
output = "elepower_dynamics:silicon_wafer",
|
|
|
|
},
|
2018-07-21 23:03:17 +00:00
|
|
|
{
|
|
|
|
recipe = { "default:coal_lump", "elepower_dynamics:coal_dust 4" },
|
|
|
|
output = "elepower_dynamics:graphite_ingot",
|
|
|
|
},
|
2018-08-31 17:00:55 +00:00
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:silicon_wafer", "elepower_dynamics:gold_dust 4" },
|
|
|
|
output = "elepower_dynamics:silicon_wafer_doped",
|
|
|
|
time = 8,
|
|
|
|
},
|
2018-12-12 13:04:53 +00:00
|
|
|
{
|
|
|
|
recipe = { "default:obsidian_glass", "elepower_dynamics:lead_ingot 4" },
|
|
|
|
output = "elepower_dynamics:hardened_glass 4",
|
|
|
|
time = 8,
|
|
|
|
},
|
2018-12-15 22:26:56 +00:00
|
|
|
{
|
|
|
|
recipe = { "default:copper_ingot 2", "moreores:silver_ingot" },
|
2018-12-17 17:48:45 +00:00
|
|
|
output = "basic_materials:brass_ingot 3",
|
2018-12-15 22:26:56 +00:00
|
|
|
time = 8,
|
|
|
|
},
|
2019-02-04 18:08:07 +00:00
|
|
|
{
|
|
|
|
recipe = { "default:bronze_ingot", "default:steel_ingot 4" },
|
|
|
|
output = "elepower_machines:heat_casing 4",
|
|
|
|
},
|
2018-06-21 13:08:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Register alloy furnace recipes
|
|
|
|
for _,i in pairs(alloy_recipes) do
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "alloy",
|
|
|
|
recipe = i.recipe,
|
|
|
|
output = i.output,
|
|
|
|
time = i.time or 4
|
|
|
|
})
|
|
|
|
end
|
2018-06-18 07:09:43 +00:00
|
|
|
|
|
|
|
--------------
|
|
|
|
-- Grinding --
|
|
|
|
--------------
|
|
|
|
|
2018-07-29 10:23:32 +00:00
|
|
|
local keywords = { _ingot = 1, _lump = 2, _block = 9, block = 9 }
|
|
|
|
local ingot_map = {}
|
|
|
|
local block_map = {}
|
2018-06-18 07:09:43 +00:00
|
|
|
for mat, data in pairs(elepd.registered_dusts) do
|
|
|
|
local kwfound = nil
|
|
|
|
for keyword,count in pairs(keywords) do
|
2018-06-18 11:43:40 +00:00
|
|
|
local found = ele.helpers.scan_item_list(mat .. keyword)
|
2018-06-18 07:09:43 +00:00
|
|
|
if found then
|
|
|
|
if keyword == "_ingot" and not kwfound then
|
|
|
|
kwfound = found
|
2018-07-29 10:23:32 +00:00
|
|
|
elseif keyword == "_block" or keyword == "block" and not block_map[mat] then
|
2018-07-29 13:06:20 +00:00
|
|
|
block_map[mat] = found
|
2018-06-18 07:09:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
-- Grind recipe for material
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "grind",
|
|
|
|
recipe = { found },
|
|
|
|
output = data.item .. " " .. count,
|
|
|
|
time = count + 4,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Add dust -> ingot smelting
|
|
|
|
if kwfound then
|
2018-07-29 10:23:32 +00:00
|
|
|
ingot_map[mat] = kwfound
|
2018-06-18 07:09:43 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
recipe = data.item,
|
|
|
|
output = kwfound
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-06-25 19:01:17 +00:00
|
|
|
-- Other recipes
|
|
|
|
|
2018-08-08 15:05:11 +00:00
|
|
|
local grinding_recipes = {
|
|
|
|
{
|
|
|
|
recipe = { "farming:wheat" },
|
|
|
|
output = "farming:flour 2",
|
|
|
|
time = 4,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:desert_sand 4" },
|
2018-12-12 13:46:19 +00:00
|
|
|
output = "basic_materials:silicon",
|
2018-08-08 15:05:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:sand 4" },
|
2018-12-12 13:46:19 +00:00
|
|
|
output = "basic_materials:silicon",
|
2018-08-08 15:05:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:cobble" },
|
|
|
|
output = "default:gravel 4",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:gravel" },
|
|
|
|
output = "default:sand 4",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:mese" },
|
|
|
|
output = "default:mese_crystal 9",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "default:mese_crystal" },
|
|
|
|
output = "default:mese_crystal_fragment 9",
|
2019-01-27 19:24:12 +00:00
|
|
|
},
|
2021-08-08 10:39:20 +00:00
|
|
|
{
|
|
|
|
recipe = { "default:mese_crystal_fragment" },
|
|
|
|
output = "elepower_dynamics:mese_dust",
|
|
|
|
},
|
2019-01-27 19:24:12 +00:00
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:graphite_ingot" },
|
|
|
|
output = "elepower_dynamics:graphite_rod 3",
|
2018-08-08 15:05:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-08 10:39:20 +00:00
|
|
|
-- Register grind recipes
|
2018-08-08 15:05:11 +00:00
|
|
|
for _,i in pairs(grinding_recipes) do
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "grind",
|
|
|
|
recipe = i.recipe,
|
|
|
|
output = i.output,
|
|
|
|
time = i.time or 8,
|
|
|
|
})
|
|
|
|
end
|
2018-07-01 15:56:31 +00:00
|
|
|
|
2018-07-29 10:23:32 +00:00
|
|
|
-----------------
|
|
|
|
-- Compressing --
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
for mat, ingot in pairs(ingot_map) do
|
2018-07-29 13:06:20 +00:00
|
|
|
local plate = elepd.registered_plates[mat]
|
2018-08-10 08:32:35 +00:00
|
|
|
local dust = elepd.registered_dusts[mat]
|
2018-07-29 10:23:32 +00:00
|
|
|
|
2018-07-29 13:06:20 +00:00
|
|
|
if plate then
|
2018-07-29 10:23:32 +00:00
|
|
|
elepm.register_craft({
|
|
|
|
type = "compress",
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = {ingot,ingot},
|
|
|
|
output = plate.item.." 2",
|
2018-07-29 10:23:32 +00:00
|
|
|
time = 4,
|
|
|
|
})
|
2018-08-10 08:32:35 +00:00
|
|
|
|
|
|
|
if dust then
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "grind",
|
|
|
|
recipe = { plate.item },
|
2021-08-08 10:39:20 +00:00
|
|
|
output = dust.item.." 2",
|
2018-08-10 08:32:35 +00:00
|
|
|
time = 6,
|
|
|
|
})
|
|
|
|
end
|
2018-07-29 10:23:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-08-01 14:41:01 +00:00
|
|
|
-- Detect sands
|
|
|
|
for name in pairs(minetest.registered_nodes) do
|
|
|
|
if name:match("sand") and not name:match("sandstone") then
|
|
|
|
local sand = name
|
|
|
|
local sandstone = name .. "stone"
|
|
|
|
if minetest.registered_nodes[sandstone] then
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "compress",
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { sand .. " 2",sand .. " 2"},
|
2018-08-01 14:41:01 +00:00
|
|
|
output = sandstone,
|
|
|
|
time = 1,
|
|
|
|
})
|
|
|
|
|
2018-08-08 15:05:11 +00:00
|
|
|
-- Also give a grinding recipe to get the sand back
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "grind",
|
|
|
|
recipe = { sandstone },
|
|
|
|
output = sand .. " 4",
|
|
|
|
time = 5,
|
|
|
|
})
|
|
|
|
|
2018-08-01 14:41:01 +00:00
|
|
|
-- Find block as well
|
|
|
|
local ssblock = sandstone .. "_block"
|
|
|
|
if minetest.registered_nodes[ssblock] then
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "compress",
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { sandstone .. " 2",sandstone .. " 2" },
|
2018-08-01 14:41:01 +00:00
|
|
|
output = ssblock,
|
|
|
|
time = 1,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-09-28 16:22:02 +00:00
|
|
|
local compressor_recipes = {
|
|
|
|
{
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { "elepower_dynamics:viridisium_block 4", "elepower_dynamics:viridisium_block 4" },
|
2018-09-28 16:22:02 +00:00
|
|
|
output = "elepower_dynamics:xycrone_lump",
|
|
|
|
time = 20,
|
|
|
|
},
|
|
|
|
{
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { "default:mese_crystal_fragment 4", "default:mese_crystal_fragment 4" },
|
2018-09-28 16:22:02 +00:00
|
|
|
output = "default:mese_crystal",
|
2021-08-08 10:39:20 +00:00
|
|
|
time = 2,
|
2018-09-28 16:22:02 +00:00
|
|
|
},
|
|
|
|
{
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { "default:mese_crystal 4","default:mese_crystal 4" },
|
2018-09-28 16:22:02 +00:00
|
|
|
output = "default:mese",
|
2021-08-08 10:39:20 +00:00
|
|
|
time = 2,
|
2018-12-15 19:51:46 +00:00
|
|
|
},
|
|
|
|
{
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { "elepower_dynamics:coal_dust 2","elepower_dynamics:coal_dust 2" },
|
2018-12-15 19:51:46 +00:00
|
|
|
output = "elepower_dynamics:carbon_fiber",
|
2021-08-08 10:39:20 +00:00
|
|
|
time = 2,
|
2018-12-15 19:51:46 +00:00
|
|
|
},
|
|
|
|
{
|
2021-08-08 10:39:20 +00:00
|
|
|
recipe = { "elepower_dynamics:carbon_fiber 2","elepower_dynamics:carbon_fiber 2" },
|
2018-12-15 19:51:46 +00:00
|
|
|
output = "elepower_dynamics:carbon_sheet",
|
2021-08-08 10:39:20 +00:00
|
|
|
time = 2,
|
2018-09-28 16:22:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-08 10:39:20 +00:00
|
|
|
|
2018-09-28 16:22:02 +00:00
|
|
|
-- Register compressor recipes
|
|
|
|
for _,i in pairs(compressor_recipes) do
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "compress",
|
|
|
|
recipe = i.recipe,
|
|
|
|
output = i.output,
|
|
|
|
time = i.time or 1
|
|
|
|
})
|
|
|
|
end
|
2018-08-08 15:05:11 +00:00
|
|
|
|
2018-06-18 10:25:08 +00:00
|
|
|
-------------
|
|
|
|
-- Sawmill --
|
|
|
|
-------------
|
|
|
|
|
|
|
|
-- Register all logs as sawable, if we can find a planks version
|
|
|
|
minetest.after(0.2, function ()
|
|
|
|
local wood_nodes = {}
|
|
|
|
for name in pairs(minetest.registered_nodes) do
|
|
|
|
if ele.helpers.get_item_group(name, "wood") then
|
|
|
|
wood_nodes[#wood_nodes + 1] = name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Begin making associations
|
|
|
|
-- Get crafting recipe for all woods
|
|
|
|
local assoc = {}
|
|
|
|
for _,wood in ipairs(wood_nodes) do
|
|
|
|
local recipes = minetest.get_all_craft_recipes(wood)
|
2018-12-12 19:39:14 +00:00
|
|
|
if recipes then
|
|
|
|
for _, recipe in ipairs(recipes) do
|
|
|
|
if recipe.items and #recipe.items == 1 then
|
|
|
|
assoc[recipe.items[1]] = wood
|
|
|
|
end
|
2018-06-18 10:25:08 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Register sawmill craft
|
|
|
|
for tree, wood in pairs(assoc) do
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "saw",
|
|
|
|
recipe = { tree },
|
2018-06-18 11:43:40 +00:00
|
|
|
output = {wood .. " 6", "elepower_dynamics:wood_dust"},
|
2018-06-18 10:25:08 +00:00
|
|
|
time = 8,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
|
2018-07-01 15:56:31 +00:00
|
|
|
---------------
|
|
|
|
-- Soldering --
|
|
|
|
---------------
|
2018-08-08 15:05:11 +00:00
|
|
|
|
2018-07-01 15:56:31 +00:00
|
|
|
local soldering_recipes = {
|
|
|
|
{
|
2018-08-31 17:00:55 +00:00
|
|
|
recipe = { "elepower_dynamics:silicon_wafer_doped", "elepower_dynamics:chip 4", "elepower_dynamics:lead_ingot 2" },
|
2018-07-01 15:56:31 +00:00
|
|
|
output = "elepower_dynamics:microcontroller",
|
|
|
|
time = 8,
|
|
|
|
},
|
|
|
|
{
|
2018-08-31 17:00:55 +00:00
|
|
|
recipe = { "default:copper_ingot 4", "elepower_dynamics:microcontroller 4", "elepower_dynamics:electrum_ingot 2" },
|
2018-07-01 15:56:31 +00:00
|
|
|
output = "elepower_dynamics:soc",
|
|
|
|
time = 28,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:microcontroller", "elepower_dynamics:control_circuit", "elepower_dynamics:capacitor 5" },
|
|
|
|
output = "elepower_dynamics:micro_circuit",
|
|
|
|
time = 18,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:chip 8", "elepower_dynamics:integrated_circuit 2", "elepower_dynamics:capacitor 4" },
|
|
|
|
output = "elepower_dynamics:control_circuit",
|
|
|
|
time = 20,
|
2018-07-28 18:46:28 +00:00
|
|
|
},
|
|
|
|
{
|
2018-12-12 13:46:19 +00:00
|
|
|
recipe = { "elepower_dynamics:wound_copper_coil 4", "elepower_dynamics:wound_silver_coil 2", "basic_materials:copper_wire" },
|
2018-07-28 18:46:28 +00:00
|
|
|
output = "elepower_dynamics:induction_coil",
|
|
|
|
time = 16,
|
|
|
|
},
|
|
|
|
{
|
2018-12-12 13:46:19 +00:00
|
|
|
recipe = { "elepower_dynamics:induction_coil 4", "basic_materials:copper_wire", "elepower_dynamics:zinc_dust 2" },
|
2018-07-28 18:46:28 +00:00
|
|
|
output = "elepower_dynamics:induction_coil_advanced",
|
|
|
|
time = 18,
|
2018-12-14 15:13:34 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_machines:power_cell_0", "elepower_machines:hardened_capacitor 2", "elepower_dynamics:invar_plate 8" },
|
|
|
|
output = "elepower_machines:hardened_power_cell_0",
|
|
|
|
time = 18,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_machines:hardened_power_cell_0", "elepower_machines:reinforced_capacitor 2", "elepower_dynamics:electrum_plate 8" },
|
|
|
|
output = "elepower_machines:reinforced_power_cell_0",
|
|
|
|
time = 20,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_machines:reinforced_power_cell_0", "elepower_machines:resonant_capacitor 2", "elepower_dynamics:viridisium_plate 8" },
|
|
|
|
output = "elepower_machines:resonant_power_cell_0",
|
|
|
|
time = 22,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_machines:resonant_power_cell_0", "elepower_machines:super_capacitor 2", "elepower_dynamics:xycrone_lump" },
|
|
|
|
output = "elepower_machines:super_power_cell_0",
|
|
|
|
time = 24,
|
2019-01-22 21:14:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:integrated_circuit", "elepower_dynamics:induction_coil 2", "elepower_dynamics:soc" },
|
|
|
|
output = "elepower_machines:upgrade_speed",
|
|
|
|
time = 16,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_dynamics:integrated_circuit", "elepower_machines:hardened_capacitor 2", "elepower_dynamics:soc" },
|
|
|
|
output = "elepower_machines:upgrade_efficiency",
|
|
|
|
time = 16,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = { "elepower_machines:upgrade_efficiency", "elepower_machines:resonant_capacitor 2", "elepower_dynamics:soc" },
|
|
|
|
output = "elepower_machines:upgrade_efficiency_2",
|
|
|
|
time = 16,
|
2018-07-01 15:56:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Register solderer recipes
|
|
|
|
for _,i in pairs(soldering_recipes) do
|
|
|
|
elepm.register_craft({
|
|
|
|
type = "solder",
|
|
|
|
recipe = i.recipe,
|
|
|
|
output = i.output,
|
|
|
|
time = i.time or 4
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2018-08-03 18:16:48 +00:00
|
|
|
-------------
|
|
|
|
-- Canning --
|
|
|
|
-------------
|
|
|
|
|
2018-06-18 12:24:59 +00:00
|
|
|
--******************--
|
|
|
|
-- CRAFTING RECIPES --
|
|
|
|
--******************--
|
|
|
|
|
2018-12-14 15:13:34 +00:00
|
|
|
-- Capacitors
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:hardened_capacitor",
|
|
|
|
recipe = {
|
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
|
|
|
{"elepower_dynamics:invar_plate", "default:mese_crystal", "elepower_dynamics:invar_plate"},
|
|
|
|
{"elepower_dynamics:invar_plate", "elepower_dynamics:capacitor", "elepower_dynamics:invar_plate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:reinforced_capacitor",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:invar_plate", "elepower_dynamics:invar_plate", "elepower_dynamics:invar_plate"},
|
|
|
|
{"elepower_dynamics:electrum_plate", "default:mese_crystal", "elepower_dynamics:electrum_plate"},
|
|
|
|
{"elepower_dynamics:electrum_plate", "elepower_machines:hardened_capacitor", "elepower_dynamics:electrum_plate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:resonant_capacitor",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:electrum_plate", "elepower_dynamics:electrum_plate", "elepower_dynamics:electrum_plate"},
|
|
|
|
{"elepower_dynamics:viridisium_plate", "default:mese_crystal", "elepower_dynamics:viridisium_plate"},
|
|
|
|
{"elepower_dynamics:viridisium_plate", "elepower_machines:reinforced_capacitor", "elepower_dynamics:viridisium_plate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:super_capacitor",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:viridisium_plate", "elepower_dynamics:viridisium_plate", "elepower_dynamics:viridisium_plate"},
|
|
|
|
{"elepower_dynamics:viridisium_plate", "elepower_dynamics:xycrone_lump", "elepower_dynamics:viridisium_plate"},
|
|
|
|
{"elepower_dynamics:xycrone_lump", "elepower_machines:resonant_capacitor", "elepower_dynamics:xycrone_lump"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-12-14 19:19:37 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:heavy_filter",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:steel_plate", "fluid_transfer:fluid_duct", "elepower_dynamics:steel_plate"},
|
|
|
|
{"basic_materials:silicon", "elepower_dynamics:servo_valve", "basic_materials:silicon"},
|
2018-12-15 19:51:46 +00:00
|
|
|
{"elepower_dynamics:carbon_sheet", "fluid_transfer:fluid_duct", "elepower_dynamics:carbon_sheet"}
|
2018-12-14 19:19:37 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-12-17 15:38:10 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:opaque_duct_roll",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct"},
|
|
|
|
{"elepower_dynamics:opaque_duct", "basic_materials:motor", "elepower_dynamics:opaque_duct"},
|
|
|
|
{"elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2019-01-28 11:43:07 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:wind_turbine_blade",
|
|
|
|
recipe = {
|
|
|
|
{"", "default:wood", "default:wood"},
|
|
|
|
{"default:stick", "default:wood", "default:wood"},
|
|
|
|
{"default:stick", "default:stick", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:wind_turbine_blades",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_machines:wind_turbine_blade", "elepower_machines:wind_turbine_blade", "elepower_machines:wind_turbine_blade"},
|
|
|
|
{"elepower_machines:wind_turbine_blade", "default:wood", "elepower_machines:wind_turbine_blade"},
|
|
|
|
{"elepower_machines:wind_turbine_blade", "elepower_machines:wind_turbine_blade", "elepower_machines:wind_turbine_blade"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-12-14 15:13:34 +00:00
|
|
|
-- Nodes
|
|
|
|
|
2018-06-22 18:03:41 +00:00
|
|
|
-- Coal-fired Alloy Furnace
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:coal_alloy_furnace",
|
|
|
|
recipe = {
|
|
|
|
{"default:brick", "default:brick", "default:brick"},
|
2018-08-15 11:17:52 +00:00
|
|
|
{"default:furnace", "", "default:furnace"},
|
|
|
|
{"default:brick", "default:brick", "default:brick"},
|
2018-06-22 18:03:41 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-24 13:45:21 +00:00
|
|
|
-- Grindstone
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:grindstone",
|
|
|
|
recipe = {
|
|
|
|
{"group:stone", "group:stone", "group:stone"},
|
|
|
|
{"default:flint", "default:flint", "default:flint"},
|
2018-09-17 18:28:23 +00:00
|
|
|
{"default:cobble", "default:cobble", "default:cobble"},
|
2018-06-24 13:45:21 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-09-27 11:48:05 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:crank",
|
|
|
|
recipe = {
|
|
|
|
{"group:stick", "group:stick", "group:stick"},
|
|
|
|
{"", "", "group:stick"},
|
|
|
|
{"", "", "group:stick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-22 11:51:27 +00:00
|
|
|
-- Machine block
|
2018-06-18 12:24:59 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:machine_block",
|
|
|
|
recipe = {
|
2018-12-15 22:26:56 +00:00
|
|
|
{"default:steel_ingot", "default:glass", "default:steel_ingot"},
|
|
|
|
{"default:glass", "elepower_dynamics:brass_gear", "default:glass"},
|
|
|
|
{"default:steel_ingot", "basic_materials:motor", "default:steel_ingot"},
|
2018-06-18 12:24:59 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Generator
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:generator",
|
|
|
|
recipe = {
|
|
|
|
{"", "default:steel_ingot", ""},
|
|
|
|
{"default:steel_ingot", "elepower_machines:machine_block", "default:steel_ingot"},
|
|
|
|
{"elepower_dynamics:wound_copper_coil", "default:furnace", "elepower_dynamics:wound_copper_coil"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-08-12 12:42:32 +00:00
|
|
|
-- Liquid Fuel Combustion Generator
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:fuel_burner",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:wound_copper_coil", "elepower_dynamics:integrated_circuit", "elepower_dynamics:wound_copper_coil"},
|
|
|
|
{"default:brick", "elepower_dynamics:portable_tank", "default:brick"},
|
|
|
|
{"elepower_dynamics:servo_valve", "elepower_machines:generator", "elepower_dynamics:servo_valve"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 12:24:59 +00:00
|
|
|
-- Alloy Furnace
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:alloy_furnace",
|
|
|
|
recipe = {
|
2018-06-22 18:03:41 +00:00
|
|
|
{"", "elepower_dynamics:integrated_circuit", ""},
|
2018-06-18 12:24:59 +00:00
|
|
|
{"default:brick", "elepower_machines:machine_block", "default:brick"},
|
2018-06-22 18:03:41 +00:00
|
|
|
{
|
|
|
|
"elepower_dynamics:wound_copper_coil",
|
|
|
|
"elepower_machines:coal_alloy_furnace",
|
|
|
|
"elepower_dynamics:wound_copper_coil"
|
|
|
|
},
|
2018-06-18 12:24:59 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-07-01 15:56:31 +00:00
|
|
|
-- Solderer
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:solderer",
|
|
|
|
recipe = {
|
|
|
|
{"", "elepower_dynamics:integrated_circuit", ""},
|
|
|
|
{"elepower_dynamics:chip", "elepower_machines:machine_block", "elepower_dynamics:chip"},
|
|
|
|
{
|
|
|
|
"elepower_dynamics:invar_gear",
|
|
|
|
"elepower_dynamics:wound_copper_coil",
|
|
|
|
"elepower_dynamics:invar_gear"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 12:24:59 +00:00
|
|
|
-- Furnace
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:furnace",
|
|
|
|
recipe = {
|
2018-06-22 18:03:41 +00:00
|
|
|
{"", "elepower_dynamics:integrated_circuit", ""},
|
2018-06-18 12:24:59 +00:00
|
|
|
{"default:clay_brick", "elepower_machines:machine_block", "default:clay_brick"},
|
|
|
|
{"elepower_dynamics:wound_copper_coil", "default:furnace", "elepower_dynamics:wound_copper_coil"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Pulverizer
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:pulverizer",
|
|
|
|
recipe = {
|
2018-06-22 18:03:41 +00:00
|
|
|
{"", "elepower_dynamics:integrated_circuit", ""},
|
2018-06-18 12:24:59 +00:00
|
|
|
{"default:flint", "elepower_machines:machine_block", "default:flint"},
|
|
|
|
{"elepower_dynamics:wound_copper_coil", "elepower_dynamics:lead_gear", "elepower_dynamics:wound_copper_coil"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 19:31:46 +00:00
|
|
|
-- Sawmill
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:sawmill",
|
|
|
|
recipe = {
|
2018-06-22 18:03:41 +00:00
|
|
|
{"", "elepower_dynamics:integrated_circuit", ""},
|
2018-06-18 19:31:46 +00:00
|
|
|
{"elepower_dynamics:steel_gear", "elepower_machines:machine_block", "elepower_dynamics:steel_gear"},
|
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:diamond_gear", "elepower_dynamics:lead_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 12:24:59 +00:00
|
|
|
-- Power Cell
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:power_cell_0",
|
|
|
|
recipe = {
|
2018-06-22 18:03:41 +00:00
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:control_circuit", "elepower_dynamics:lead_ingot"},
|
2018-06-18 12:24:59 +00:00
|
|
|
{"elepower_dynamics:wound_copper_coil", "elepower_machines:machine_block", "elepower_dynamics:wound_copper_coil"},
|
2018-08-03 18:16:48 +00:00
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:battery", "elepower_dynamics:lead_ingot"},
|
2018-06-18 12:24:59 +00:00
|
|
|
}
|
|
|
|
})
|
2018-06-21 08:09:01 +00:00
|
|
|
|
|
|
|
-- Water Accumulator
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:accumulator",
|
|
|
|
recipe = {
|
2018-12-14 19:19:37 +00:00
|
|
|
{"", "fluid_transfer:fluid_duct", ""},
|
2018-09-19 16:22:46 +00:00
|
|
|
{"default:glass", "elepower_machines:machine_block", "default:glass"},
|
2018-06-21 08:09:01 +00:00
|
|
|
{"elepower_dynamics:steel_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:steel_gear"},
|
|
|
|
}
|
|
|
|
})
|
2018-06-25 19:01:17 +00:00
|
|
|
|
|
|
|
-- Lava Cooler
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:lava_cooler",
|
|
|
|
recipe = {
|
|
|
|
{"bucket:bucket_water", "elepower_dynamics:control_circuit", "bucket:bucket_lava"},
|
2018-12-14 19:19:37 +00:00
|
|
|
{"fluid_transfer:fluid_duct", "elepower_machines:machine_block", "fluid_transfer:fluid_duct"},
|
2018-06-25 19:01:17 +00:00
|
|
|
{"elepower_dynamics:servo_valve", "elepower_dynamics:tin_gear", "elepower_dynamics:servo_valve"},
|
|
|
|
},
|
|
|
|
replacements = {
|
|
|
|
{"bucket:bucket_water", "bucket:bucket_empty"},
|
|
|
|
{"bucket:bucket_lava", "bucket:bucket_empty"},
|
|
|
|
}
|
|
|
|
})
|
2018-07-08 09:33:35 +00:00
|
|
|
|
|
|
|
-- Lava Generator
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:lava_generator",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:control_circuit", "elepower_dynamics:wound_silver_coil"},
|
|
|
|
{"default:brick", "elepower_machines:machine_block", "default:brick"},
|
|
|
|
{"elepower_dynamics:invar_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:invar_gear"},
|
|
|
|
},
|
|
|
|
})
|
2018-07-29 10:23:32 +00:00
|
|
|
|
|
|
|
-- Compressor Piston
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:compressor_piston",
|
|
|
|
recipe = {
|
|
|
|
{"", "default:steel_ingot", ""},
|
|
|
|
{"", "default:steel_ingot", ""},
|
|
|
|
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:compressor_piston",
|
|
|
|
recipe = {
|
|
|
|
{"", "default:steel_ingot", ""},
|
|
|
|
{"", "default:steel_ingot", ""},
|
|
|
|
{"", "elepower_dynamics:bronze_plate", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Compressor
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:compressor",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:integrated_circuit", "elepower_machines:compressor_piston", "elepower_dynamics:wound_copper_coil"},
|
|
|
|
{"elepower_dynamics:steel_gear", "elepower_machines:machine_block", "elepower_dynamics:steel_gear"},
|
|
|
|
{"default:steel_ingot", "elepower_machines:compressor_piston", "default:steel_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Turbine blades
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:turbine_blades",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:steel_plate", "elepower_dynamics:steel_plate", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:steel_plate", "default:steel_ingot", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:steel_plate", "elepower_dynamics:steel_plate", "elepower_dynamics:steel_plate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Steam Turbine
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:steam_turbine",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:induction_coil", "elepower_machines:turbine_blades", "elepower_dynamics:induction_coil"},
|
|
|
|
{"elepower_dynamics:steel_plate", "elepower_machines:machine_block", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:invar_gear", "elepower_machines:turbine_blades", "elepower_dynamics:invar_gear"},
|
|
|
|
}
|
|
|
|
})
|
2018-08-03 18:16:48 +00:00
|
|
|
|
|
|
|
-- Canning Machine
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:canning_machine",
|
|
|
|
recipe = {
|
2018-09-14 14:29:34 +00:00
|
|
|
{"elepower_dynamics:wound_copper_coil", "elepower_machines:compressor_piston", "elepower_dynamics:wound_copper_coil"},
|
2018-08-03 18:16:48 +00:00
|
|
|
{"elepower_dynamics:tin_can", "elepower_machines:machine_block", "elepower_dynamics:tin_can"},
|
|
|
|
{"elepower_dynamics:steel_gear", "elepower_dynamics:tin_gear", "elepower_dynamics:steel_gear"},
|
|
|
|
}
|
|
|
|
})
|
2018-08-11 09:50:54 +00:00
|
|
|
|
|
|
|
-- Bucketer
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:bucketer",
|
|
|
|
recipe = {
|
|
|
|
{"", "elepower_dynamics:portable_tank", ""},
|
|
|
|
{"elepower_dynamics:tin_can", "elepower_machines:machine_block", "elepower_dynamics:tin_can"},
|
|
|
|
{"elepower_dynamics:servo_valve", "elepower_dynamics:tin_gear", "elepower_dynamics:servo_valve"},
|
|
|
|
}
|
|
|
|
})
|
2018-08-29 12:45:31 +00:00
|
|
|
|
|
|
|
-- Electrolyzer
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:electrolyzer",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:copper_plate", "elepower_dynamics:integrated_circuit", "elepower_dynamics:zinc_plate"},
|
|
|
|
{"bucket:bucket_empty", "elepower_machines:machine_block", "elepower_dynamics:gas_container"},
|
|
|
|
{"elepower_dynamics:servo_valve", "elepower_dynamics:wound_copper_coil", "elepower_dynamics:servo_valve"},
|
|
|
|
}
|
|
|
|
})
|
2018-12-14 19:19:37 +00:00
|
|
|
|
|
|
|
-- Advanced Machine Block
|
|
|
|
minetest.register_craft({
|
2019-02-04 18:08:07 +00:00
|
|
|
output = "elepower_machines:advanced_machine_block 4",
|
2018-12-14 19:19:37 +00:00
|
|
|
recipe = {
|
2019-01-22 15:07:04 +00:00
|
|
|
{"elepower_dynamics:electrum_plate", "elepower_dynamics:induction_coil_advanced", "elepower_dynamics:electrum_plate"},
|
2019-02-04 18:08:07 +00:00
|
|
|
{"elepower_dynamics:brass_plate", "elepower_machines:heat_casing", "elepower_dynamics:brass_plate"},
|
2019-01-22 15:07:04 +00:00
|
|
|
{"elepower_dynamics:electrum_plate", "elepower_dynamics:induction_coil_advanced", "elepower_dynamics:electrum_plate"},
|
2018-12-14 19:19:37 +00:00
|
|
|
}
|
|
|
|
})
|
2018-12-17 15:38:10 +00:00
|
|
|
|
|
|
|
-- Pump
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:pump",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:lead_gear", "elepower_dynamics:integrated_circuit", "elepower_dynamics:lead_gear"},
|
|
|
|
{"bucket:bucket_empty", "elepower_machines:machine_block", "bucket:bucket_empty"},
|
|
|
|
{"elepower_dynamics:electrum_plate", "elepower_machines:opaque_duct_roll", "elepower_dynamics:electrum_plate"},
|
|
|
|
}
|
|
|
|
})
|
2019-01-28 11:43:07 +00:00
|
|
|
|
|
|
|
-- Wind Turbine
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:wind_turbine",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:wound_copper_coil", "elepower_machines:turbine_blades", "elepower_dynamics:wound_copper_coil"},
|
|
|
|
{"elepower_dynamics:steel_plate", "elepower_machines:machine_block", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:invar_gear", "elepower_dynamics:steel_plate", "elepower_dynamics:invar_gear"},
|
|
|
|
}
|
|
|
|
})
|
2019-02-10 16:56:24 +00:00
|
|
|
|
|
|
|
-- Evaporizer
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:evaporator",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:steel_plate", "default:steelblock", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:steel_plate", "elepower_machines:machine_block", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:induction_coil", "elepower_dynamics:zinc_plate", "elepower_dynamics:induction_coil"},
|
|
|
|
}
|
|
|
|
})
|
2020-05-01 19:50:52 +00:00
|
|
|
|
|
|
|
-- PCB Plant
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_machines:pcb_plant",
|
|
|
|
recipe = {
|
|
|
|
{"", "elepower_dynamics:integrated_circuit", ""},
|
|
|
|
{"elepower_dynamics:chip", "elepower_machines:machine_block", "elepower_dynamics:chip"},
|
|
|
|
{"elepower_dynamics:servo_valve", "elepower_dynamics:uv_bulb", "elepower_dynamics:bronze_gear"},
|
|
|
|
}
|
|
|
|
})
|