Add an LCD Panel component

This commit is contained in:
Evert Prants 2018-08-13 20:02:22 +03:00
parent 88d9b64519
commit b380197802
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
4 changed files with 29 additions and 23 deletions

View File

@ -233,15 +233,6 @@ 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",
@ -260,11 +251,11 @@ else
"elepower_dynamics:viridisium_dust", "elepower_dynamics:viridisium_dust",
"elepower_dynamics:viridisium_dust", "elepower_dynamics:viridisium_dust",
"elepower_dynamics:viridisium_dust", "elepower_dynamics:viridisium_dust",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"farming:seed_wheat", "farming:seed_wheat",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
} }
}) })
@ -277,16 +268,25 @@ else
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"}, {"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
} }
}) })
end
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:battery 2", output = "elepower_dynamics:battery 2",
recipe = { recipe = {
{"elepower_dynamics:zinc_dust", "elepower_dynamics:wound_copper_coil", "elepower_dynamics:lead_dust"}, {"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_fragment", "elepower_dynamics:tin_plate"},
{"elepower_dynamics:tin_plate", "default:mese_crystal", "elepower_dynamics:tin_plate"}, {"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
} }
}) })
end
minetest.register_craft({
output = "elepower_dynamics:lcd_panel",
recipe = {
{"dye:red", "dye:green", "dye:blue"},
{"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"},
{"", "default:meselamp", ""}
}
})
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:integrated_circuit", output = "elepower_dynamics:integrated_circuit",

View File

@ -256,6 +256,12 @@ minetest.register_craftitem("elepower_dynamics:micro_circuit", {
groups = {circuit = 3, assembled_component = 1, control_circuit = 2} groups = {circuit = 3, assembled_component = 1, control_circuit = 2}
}) })
minetest.register_craftitem("elepower_dynamics:lcd_panel", {
description = "LCD Panel",
inventory_image = "elepower_lcd_panel.png",
groups = {lcd = 1, assembled_component = 1}
})
--------------- ---------------
-- Overrides -- -- Overrides --
--------------- ---------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -31,7 +31,7 @@ minetest.register_craft({
recipe = { recipe = {
{"elepower_dynamics:wound_silver_coil", "elepower_dynamics:soc", "elepower_dynamics:wound_silver_coil"}, {"elepower_dynamics:wound_silver_coil", "elepower_dynamics:soc", "elepower_dynamics:wound_silver_coil"},
{"elepower_dynamics:wound_copper_coil", "default:steelblock", "elepower_dynamics:wound_copper_coil"}, {"elepower_dynamics:wound_copper_coil", "default:steelblock", "elepower_dynamics:wound_copper_coil"},
{"elepower_dynamics:electrum_gear", ingot, "elepower_dynamics:electrum_gear"}, {"elepower_dynamics:electrum_gear", "elepower_dynamics:lcd_panel", "elepower_dynamics:electrum_gear"},
} }
}) })