Crafting recipes and components

This commit is contained in:
Evert Prants 2018-06-18 15:24:59 +03:00
parent d1b81c55d2
commit 611a756a18
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
5 changed files with 105 additions and 1 deletions

View File

@ -90,7 +90,7 @@ minetest.register_craft({
})
-----------
-- Items --
-- Nodes --
-----------
minetest.register_craft({
@ -104,6 +104,28 @@ minetest.register_craft({
}
})
-----------
-- 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", ""}
}
})
minetest.register_craft({
output = "elepower_dynamics:copper_wire",
recipe = {
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{"default:copper_ingot", "", "default:copper_ingot"},
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"}
}
})
--------------
-- Smelting --
--------------
@ -120,6 +142,13 @@ minetest.register_craft({
recipe = "elepower_dynamics:lead_ingot"
})
minetest.register_craft({
type = "cooking",
output = "default:steel_ingot",
recipe = "elepower_dynamics:iron_ingot",
cooktime = 20
})
-----------
-- Gears --
-----------

View File

@ -39,6 +39,18 @@ minetest.register_craftitem("elepower_dynamics:carbon_sheet", {
groups = {carbon_fiber_sheet = 1, sheet = 1}
})
minetest.register_craftitem("elepower_dynamics:wound_copper_coil", {
description = "Wound Copper Coil",
inventory_image = "elepower_copper_coil.png",
groups = {copper = 1, coil = 1}
})
minetest.register_craftitem("elepower_dynamics:copper_wire", {
description = "Copper Wire",
inventory_image = "elepower_copper_wire.png",
groups = {copper = 1, wire = 1}
})
---------------
-- Overrides --
---------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

View File

@ -197,3 +197,66 @@ elepm.register_storage("elepower_machines:power_cell", {
},
groups = {oddly_breakable_by_hand = 1}
})
--******************--
-- CRAFTING RECIPES --
--******************--
minetest.register_craft({
output = "elepower_machines:machine_block",
recipe = {
{"group:glass", "default:steel_ingot", "group:glass"},
{"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"},
{"group:glass", "default:steel_ingot", "group:glass"},
}
})
-- 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"}
}
})
-- Alloy Furnace
minetest.register_craft({
output = "elepower_machines:alloy_furnace",
recipe = {
{"", "elepower_dynamics:copper_wire", ""},
{"default:brick", "elepower_machines:machine_block", "default:brick"},
{"default:furnace", "elepower_dynamics:wound_copper_coil", "default:furnace"},
}
})
-- Furnace
minetest.register_craft({
output = "elepower_machines:furnace",
recipe = {
{"", "elepower_dynamics:copper_wire", ""},
{"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 = {
{"", "elepower_dynamics:copper_wire", ""},
{"default:flint", "elepower_machines:machine_block", "default:flint"},
{"elepower_dynamics:wound_copper_coil", "elepower_dynamics:lead_gear", "elepower_dynamics:wound_copper_coil"},
}
})
-- Power Cell
minetest.register_craft({
output = "elepower_machines:power_cell_0",
recipe = {
{"elepower_dynamics:lead_ingot", "elepower_dynamics:copper_wire", "elepower_dynamics:lead_ingot"},
{"elepower_dynamics:wound_copper_coil", "elepower_machines:machine_block", "elepower_dynamics:wound_copper_coil"},
{"elepower_dynamics:lead_ingot", "elepower_dynamics:diamond_gear", "elepower_dynamics:lead_ingot"},
}
})