2018-06-18 07:09:43 +00:00
|
|
|
|
|
|
|
---------------
|
|
|
|
-- Overrides --
|
|
|
|
---------------
|
|
|
|
|
2018-06-22 11:51:27 +00:00
|
|
|
-- Remove iron_lump -> steel_ingot, because dynamics adds iron ingot
|
2018-06-18 07:09:43 +00:00
|
|
|
minetest.clear_craft({type = "cooking", output = "default:steel_ingot"})
|
|
|
|
|
|
|
|
-----------
|
|
|
|
-- Tools --
|
|
|
|
-----------
|
|
|
|
|
|
|
|
-- Pickaxes
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:pick_iron',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
|
|
|
|
{'', 'group:stick', ''},
|
|
|
|
{'', 'group:stick', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:pick_lead',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
|
|
|
|
{'', 'group:stick', ''},
|
|
|
|
{'', 'group:stick', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Shovels
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:shovel_iron',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:iron_ingot'},
|
|
|
|
{'group:stick'},
|
|
|
|
{'group:stick'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:shovel_lead',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:lead_ingot'},
|
|
|
|
{'group:stick'},
|
|
|
|
{'group:stick'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Axes
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:axe_iron',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
|
|
|
|
{'elepower_dynamics:iron_ingot', 'group:stick'},
|
|
|
|
{'', 'group:stick'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:axe_lead',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
|
|
|
|
{'elepower_dynamics:lead_ingot', 'group:stick'},
|
|
|
|
{'', 'group:stick'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Swords
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:sword_iron',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:iron_ingot'},
|
|
|
|
{'elepower_dynamics:iron_ingot'},
|
|
|
|
{'group:stick'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'elepower_dynamics:sword_lead',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:lead_ingot'},
|
|
|
|
{'elepower_dynamics:lead_ingot'},
|
|
|
|
{'group:stick'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-08-15 11:17:52 +00:00
|
|
|
-- Bucket
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'bucket:bucket_empty',
|
|
|
|
recipe = {
|
|
|
|
{'elepower_dynamics:iron_ingot', '', 'elepower_dynamics:iron_ingot'},
|
|
|
|
{'', 'elepower_dynamics:iron_ingot', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 07:09:43 +00:00
|
|
|
-----------
|
2018-06-18 12:24:59 +00:00
|
|
|
-- Nodes --
|
2018-06-18 07:09:43 +00:00
|
|
|
-----------
|
|
|
|
|
2018-06-18 11:43:40 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "elepower_dynamics:particle_board",
|
|
|
|
recipe = {
|
|
|
|
"elepower_dynamics:wood_dust",
|
|
|
|
"elepower_dynamics:wood_dust",
|
|
|
|
"elepower_dynamics:wood_dust",
|
|
|
|
"elepower_dynamics:wood_dust",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 12:27:18 +00:00
|
|
|
-- Conduit
|
|
|
|
minetest.register_craft({
|
2018-08-30 20:14:50 +00:00
|
|
|
output = "elepower_dynamics:conduit 8",
|
2018-06-18 12:27:18 +00:00
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
|
2018-12-12 13:46:19 +00:00
|
|
|
{"basic_materials:copper_wire", "basic_materials:copper_wire", "basic_materials:copper_wire"},
|
2018-06-18 12:27:18 +00:00
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-12-17 15:38:10 +00:00
|
|
|
-- Opaque Fluid Duct
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:opaque_duct 3",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
|
|
|
|
{"fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct"},
|
|
|
|
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-21 10:14:12 +00:00
|
|
|
-- Portable Tank
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:portable_tank",
|
|
|
|
recipe = {
|
2018-09-19 16:22:46 +00:00
|
|
|
{"default:glass", "elepower_dynamics:fluid_duct", "default:glass"},
|
|
|
|
{"default:glass", "default:glass", "default:glass"},
|
2018-06-21 10:14:12 +00:00
|
|
|
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 12:24:59 +00:00
|
|
|
-----------
|
|
|
|
-- Items --
|
|
|
|
-----------
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:wound_copper_coil",
|
|
|
|
recipe = {
|
|
|
|
{"", "default:copper_ingot", ""},
|
|
|
|
{"default:copper_ingot", "elepower_dynamics:iron_ingot", "default:copper_ingot"},
|
|
|
|
{"", "default:copper_ingot", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-22 18:03:41 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:wound_silver_coil",
|
|
|
|
recipe = {
|
|
|
|
{"", "moreores:silver_ingot", ""},
|
2018-07-08 09:33:35 +00:00
|
|
|
{"moreores:silver_ingot", "elepower_dynamics:zinc_ingot", "moreores:silver_ingot"},
|
2018-06-22 18:03:41 +00:00
|
|
|
{"", "moreores:silver_ingot", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-21 08:09:01 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:servo_valve 3",
|
|
|
|
recipe = {
|
|
|
|
{"", "elepower_dynamics:wound_copper_coil", ""},
|
|
|
|
{"elepower_dynamics:fluid_duct", "elepower_dynamics:fluid_duct", "elepower_dynamics:fluid_duct"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:tree_tap",
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
|
|
{"", "", "default:steel_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-22 18:03:41 +00:00
|
|
|
minetest.register_craft({
|
2018-08-03 10:15:31 +00:00
|
|
|
output = "elepower_dynamics:chip 6",
|
2018-06-22 18:03:41 +00:00
|
|
|
recipe = {
|
2018-12-12 13:20:22 +00:00
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
2018-12-15 19:51:46 +00:00
|
|
|
{"default:mese_crystal_fragment", "group:color_black", "default:mese_crystal_fragment"},
|
2018-06-22 18:03:41 +00:00
|
|
|
{"default:copper_ingot", "moreores:silver_ingot", "default:copper_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2018-08-03 10:15:31 +00:00
|
|
|
output = "elepower_dynamics:capacitor 6",
|
2018-06-22 18:03:41 +00:00
|
|
|
recipe = {
|
2018-12-12 13:20:22 +00:00
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
2018-06-22 18:03:41 +00:00
|
|
|
{"moreores:silver_ingot", "default:mese_crystal", "moreores:silver_ingot"},
|
2018-09-14 14:29:34 +00:00
|
|
|
{"default:copper_ingot", "group:color_violet", "default:copper_ingot"},
|
2018-06-22 18:03:41 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-12-14 15:13:34 +00:00
|
|
|
minetest.register_craft({
|
2018-12-15 19:51:46 +00:00
|
|
|
output = "elepower_dynamics:pcb_blank 3",
|
2018-09-20 14:42:27 +00:00
|
|
|
recipe = {
|
|
|
|
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
|
|
|
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
|
|
|
|
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
|
|
|
|
}
|
|
|
|
})
|
2018-08-07 19:47:59 +00:00
|
|
|
|
2018-09-20 14:42:27 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "elepower_dynamics:acidic_compound",
|
|
|
|
recipe = {
|
|
|
|
"elepower_dynamics:copper_dust",
|
|
|
|
"elepower_dynamics:copper_dust",
|
|
|
|
"elepower_dynamics:copper_dust",
|
|
|
|
"elepower_dynamics:copper_dust",
|
|
|
|
"farming:seed_wheat",
|
|
|
|
}
|
|
|
|
})
|
2018-08-07 19:47:59 +00:00
|
|
|
|
2018-09-20 14:42:27 +00:00
|
|
|
-- Fluid Transfer Node
|
2018-12-12 19:06:41 +00:00
|
|
|
minetest.clear_craft({output = "fluid_transfer:fluid_transfer_pump"})
|
2018-09-20 14:42:27 +00:00
|
|
|
minetest.register_craft({
|
2018-12-12 19:06:41 +00:00
|
|
|
output = "fluid_transfer:fluid_transfer_pump 3",
|
2018-09-20 14:42:27 +00:00
|
|
|
recipe = {
|
|
|
|
{"group:stone", "elepower_dynamics:control_circuit", "group:stone"},
|
|
|
|
{"elepower_dynamics:electrum_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:electrum_gear"},
|
|
|
|
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
|
|
|
|
}
|
|
|
|
})
|
2018-06-24 09:10:47 +00:00
|
|
|
|
2018-08-13 17:02:22 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:battery 2",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:zinc_dust", "elepower_dynamics:wound_copper_coil", "elepower_dynamics:lead_dust"},
|
|
|
|
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
|
|
|
|
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:lcd_panel",
|
|
|
|
recipe = {
|
2018-09-14 14:29:34 +00:00
|
|
|
{"group:color_red", "group:color_green", "group:color_blue"},
|
2018-08-13 17:02:22 +00:00
|
|
|
{"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"},
|
|
|
|
{"", "default:meselamp", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-08-31 17:00:55 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:pv_cell",
|
|
|
|
recipe = {
|
2018-09-19 16:22:46 +00:00
|
|
|
{"default:glass", "default:glass", "default:glass"},
|
2018-09-14 14:29:34 +00:00
|
|
|
{"group:color_blue", "elepower_dynamics:silicon_wafer_doped", "group:color_blue"},
|
2018-08-31 17:00:55 +00:00
|
|
|
{"default:mese_crystal_fragment", "elepower_dynamics:wound_copper_coil", "default:mese_crystal_fragment"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-22 18:03:41 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:integrated_circuit",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:chip", "elepower_dynamics:chip", "elepower_dynamics:chip"},
|
|
|
|
{"elepower_dynamics:capacitor", "elepower_dynamics:pcb", "elepower_dynamics:capacitor"},
|
2018-12-15 19:51:46 +00:00
|
|
|
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
|
2018-06-22 18:03:41 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-08-03 18:16:48 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:tin_can 8",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:tin_plate", ""},
|
|
|
|
{"", "elepower_dynamics:tin_plate"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-08-29 12:45:31 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "elepower_dynamics:gas_container 8",
|
|
|
|
recipe = {
|
|
|
|
{"elepower_dynamics:steel_plate", "", "elepower_dynamics:steel_plate"},
|
|
|
|
{"elepower_dynamics:steel_plate", "", "elepower_dynamics:steel_plate"},
|
|
|
|
{"", "elepower_dynamics:steel_plate", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2018-06-18 07:09:43 +00:00
|
|
|
--------------
|
|
|
|
-- Smelting --
|
|
|
|
--------------
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "elepower_dynamics:iron_ingot",
|
|
|
|
recipe = "default:iron_lump"
|
|
|
|
})
|
|
|
|
|
2018-12-15 19:51:46 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:steel_ingot",
|
|
|
|
recipe = "elepower_dynamics:iron_ingot"
|
|
|
|
})
|
|
|
|
|
2018-06-18 07:09:43 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2018-06-21 14:35:39 +00:00
|
|
|
output = "elepower_dynamics:lead_ingot",
|
|
|
|
recipe = "elepower_dynamics:lead_lump"
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "elepower_dynamics:nickel_ingot",
|
|
|
|
recipe = "elepower_dynamics:nickel_lump"
|
2018-06-18 07:09:43 +00:00
|
|
|
})
|
2018-06-18 11:43:40 +00:00
|
|
|
|
2018-07-02 14:37:00 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "elepower_dynamics:zinc_ingot",
|
|
|
|
recipe = "elepower_dynamics:zinc_lump"
|
|
|
|
})
|
|
|
|
|
2018-06-18 12:24:59 +00:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2018-06-22 18:03:41 +00:00
|
|
|
output = "elepower_dynamics:viridisium_ingot",
|
|
|
|
recipe = "elepower_dynamics:viridisium_lump",
|
|
|
|
cooktime = 10,
|
2018-06-18 12:24:59 +00:00
|
|
|
})
|
|
|
|
|
2018-06-18 11:43:40 +00:00
|
|
|
-----------
|
|
|
|
-- Gears --
|
|
|
|
-----------
|
|
|
|
|
|
|
|
local keywords = { "_ingot", "" }
|
|
|
|
for mat, data in pairs(elepd.registered_gears) do
|
|
|
|
for _,keyword in ipairs(keywords) do
|
|
|
|
local found = ele.helpers.scan_item_list(mat .. keyword)
|
|
|
|
local immebreak = false
|
|
|
|
|
|
|
|
if mat == "wood" then
|
|
|
|
found = "group:stick"
|
|
|
|
immebreak = true
|
|
|
|
end
|
|
|
|
|
|
|
|
if found then
|
|
|
|
-- Gear recipe for material
|
|
|
|
minetest.register_craft({
|
|
|
|
recipe = {
|
|
|
|
{ "", found, "" },
|
|
|
|
{ found, "", found},
|
|
|
|
{ "", found, "" }
|
|
|
|
},
|
|
|
|
output = data.item
|
|
|
|
})
|
|
|
|
|
|
|
|
if immebreak then break end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2018-07-02 14:37:00 +00:00
|
|
|
|
|
|
|
-----------
|
|
|
|
-- Nodes --
|
|
|
|
-----------
|
|
|
|
|
|
|
|
local function blockcraft(mat)
|
|
|
|
local ingot = "elepower_dynamics:" .. mat .. "_ingot"
|
|
|
|
local block = "elepower_dynamics:" .. mat .. "_block"
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = block,
|
|
|
|
recipe = {
|
|
|
|
ingot, ingot, ingot,
|
|
|
|
ingot, ingot, ingot,
|
|
|
|
ingot, ingot, ingot,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = ingot .. " 9",
|
|
|
|
recipe = { block },
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
blockcraft("viridisium")
|
|
|
|
blockcraft("nickel")
|
|
|
|
blockcraft("invar")
|
|
|
|
blockcraft("lead")
|
|
|
|
blockcraft("zinc")
|