Utility crafting recipes
This commit is contained in:
parent
2ab287a64f
commit
04a58a6a14
@ -233,6 +233,15 @@ if easycrafting then
|
|||||||
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
|
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
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"},
|
||||||
|
}
|
||||||
|
})
|
||||||
else
|
else
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:pcb_blank",
|
output = "elepower_dynamics:pcb_blank",
|
||||||
@ -268,6 +277,15 @@ else
|
|||||||
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
|
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
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", "elepower_dynamics:tin_plate"},
|
||||||
|
{"elepower_dynamics:tin_plate", "default:mese_crystal", "elepower_dynamics:tin_plate"},
|
||||||
|
}
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -288,15 +306,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
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", "elepower_dynamics:tin_plate"},
|
|
||||||
{"elepower_dynamics:tin_plate", "default:mese_crystal", "elepower_dynamics:tin_plate"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:tin_can 8",
|
output = "elepower_dynamics:tin_can 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -87,18 +87,48 @@ for mat, data in pairs(elepd.registered_dusts) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Other recipes
|
-- Other recipes
|
||||||
elepm.register_craft({
|
|
||||||
type = "grind",
|
|
||||||
recipe = { "farming:wheat" },
|
|
||||||
output = "farming:flour 2"
|
|
||||||
})
|
|
||||||
|
|
||||||
elepm.register_craft({
|
local grinding_recipes = {
|
||||||
type = "grind",
|
{
|
||||||
|
recipe = { "farming:wheat" },
|
||||||
|
output = "farming:flour 2",
|
||||||
|
time = 4,
|
||||||
|
},
|
||||||
|
{
|
||||||
recipe = { "default:desert_sand 4" },
|
recipe = { "default:desert_sand 4" },
|
||||||
output = "elepower_dynamics:silicon",
|
output = "elepower_dynamics:silicon",
|
||||||
time = 8,
|
},
|
||||||
|
{
|
||||||
|
recipe = { "default:sand 4" },
|
||||||
|
output = "elepower_dynamics:silicon",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
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",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Register solderer recipes
|
||||||
|
for _,i in pairs(grinding_recipes) do
|
||||||
|
elepm.register_craft({
|
||||||
|
type = "grind",
|
||||||
|
recipe = i.recipe,
|
||||||
|
output = i.output,
|
||||||
|
time = i.time or 8,
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-----------------
|
-----------------
|
||||||
-- Compressing --
|
-- Compressing --
|
||||||
@ -130,6 +160,14 @@ for name in pairs(minetest.registered_nodes) do
|
|||||||
time = 1,
|
time = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Also give a grinding recipe to get the sand back
|
||||||
|
elepm.register_craft({
|
||||||
|
type = "grind",
|
||||||
|
recipe = { sandstone },
|
||||||
|
output = sand .. " 4",
|
||||||
|
time = 5,
|
||||||
|
})
|
||||||
|
|
||||||
-- Find block as well
|
-- Find block as well
|
||||||
local ssblock = sandstone .. "_block"
|
local ssblock = sandstone .. "_block"
|
||||||
if minetest.registered_nodes[ssblock] then
|
if minetest.registered_nodes[ssblock] then
|
||||||
@ -160,6 +198,20 @@ else
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
elepm.register_craft({
|
||||||
|
type = "compress",
|
||||||
|
recipe = { "default:mese_crystal_fragment 9" },
|
||||||
|
output = "default:mese_crystal",
|
||||||
|
time = 1,
|
||||||
|
})
|
||||||
|
|
||||||
|
elepm.register_craft({
|
||||||
|
type = "compress",
|
||||||
|
recipe = { "default:mese_crystal 9" },
|
||||||
|
output = "default:mese",
|
||||||
|
time = 1,
|
||||||
|
})
|
||||||
|
|
||||||
-------------
|
-------------
|
||||||
-- Sawmill --
|
-- Sawmill --
|
||||||
-------------
|
-------------
|
||||||
@ -199,6 +251,7 @@ end)
|
|||||||
---------------
|
---------------
|
||||||
-- Soldering --
|
-- Soldering --
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
local induction_dust = "elepower_dynamics:viridisium_dust"
|
local induction_dust = "elepower_dynamics:viridisium_dust"
|
||||||
if easycrafting then
|
if easycrafting then
|
||||||
induction_dust = "elepower_dynamics:zinc_dust"
|
induction_dust = "elepower_dynamics:zinc_dust"
|
||||||
|
Loading…
Reference in New Issue
Block a user