From b3801978027e6d72578d3dd5af7e159cd79d1053 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Mon, 13 Aug 2018 20:02:22 +0300 Subject: [PATCH] Add an LCD Panel component --- elepower_dynamics/crafting.lua | 44 +++++++++--------- elepower_dynamics/craftitems.lua | 6 +++ .../textures/elepower_lcd_panel.png | Bin 0 -> 2209 bytes elepower_wireless/crafting.lua | 2 +- 4 files changed, 29 insertions(+), 23 deletions(-) create mode 100644 elepower_dynamics/textures/elepower_lcd_panel.png diff --git a/elepower_dynamics/crafting.lua b/elepower_dynamics/crafting.lua index 645c4d1..6e1e2ac 100644 --- a/elepower_dynamics/crafting.lua +++ b/elepower_dynamics/crafting.lua @@ -233,15 +233,6 @@ if easycrafting then {"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 minetest.register_craft({ output = "elepower_dynamics:pcb_blank", @@ -260,11 +251,11 @@ else "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", + "elepower_dynamics:copper_dust", + "elepower_dynamics:copper_dust", + "elepower_dynamics:copper_dust", + "elepower_dynamics:copper_dust", } }) @@ -277,17 +268,26 @@ else {"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 +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 = { + {"dye:red", "dye:green", "dye:blue"}, + {"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"}, + {"", "default:meselamp", ""} + } +}) + minetest.register_craft({ output = "elepower_dynamics:integrated_circuit", recipe = { diff --git a/elepower_dynamics/craftitems.lua b/elepower_dynamics/craftitems.lua index f3bdc4f..26ba1aa 100644 --- a/elepower_dynamics/craftitems.lua +++ b/elepower_dynamics/craftitems.lua @@ -256,6 +256,12 @@ minetest.register_craftitem("elepower_dynamics:micro_circuit", { 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 -- --------------- diff --git a/elepower_dynamics/textures/elepower_lcd_panel.png b/elepower_dynamics/textures/elepower_lcd_panel.png new file mode 100644 index 0000000000000000000000000000000000000000..3d62a8886507004cb1d993c11c0867c362f370e4 GIT binary patch literal 2209 zcmV;S2wwMzP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O1bxvK%W8{AU%j1SDQ!IXoj~2ebT1KvefRZTs5c zTNPc;Xj6v)GyqC9k`!Hw^fh_3$on43Uz@)3Z$}X7q)vPr$7&M`z=_-V0R~efw|jREAGH965`pUmiNR z@5B|f>q!nyS-7^bWXh48^DY zp`5}?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y1+JG!-Nm7DrRv2Gk^V|e07lLJ~$a@2`0mXT#NjU#*j zjpmfJ+KZDm+WSyEhz#$dq!2CAN2nK@>e)$$^r6WzionfF=_Ix6Q5g^4T>Ey z7iF)XsbO&L5}PKrBulHn>_C zX>@2HM@dakSAh-}00066NklYvNr*Tv}ZbV+`ZNBMeQQ5 zfe0uKV!JBs~Dhp;Mt?X#5__rGiti zTw9e}*)f8NyQfmMhCj2`#*vkA4Xp(c_O>@@cOta$3~?MEzv_eZz$WfxtRo8`2`JCq zQHo6NKG`6H_u}a@RjQN)ZJbZ-hJ_^VY<%ebate-q0-C6~j@E{DCv?9cB7}`KMkgOY z>Jp%j{U>mA2sj&^FCPJDw6;n4{^<~3&lgpyUURN(0!leGHipC!HrLQv(~3frQoMQj zN}WlfQi`zofzg@A&O%~AX*$~*w4xAz;^hLH`~A5&X<)5IM4;CLrHHoHX>~%{oru97 z1*X%mxewE6kOM?rbs6f5a=BiUvCJ^7C`21g@p=9P|NIu2P6OBA+jqD!boqA= j%70y1IY7QP=)->lW6jnyye|&500000NkvXXu0mjfSXUCa literal 0 HcmV?d00001 diff --git a/elepower_wireless/crafting.lua b/elepower_wireless/crafting.lua index decc5e7..27eba0a 100644 --- a/elepower_wireless/crafting.lua +++ b/elepower_wireless/crafting.lua @@ -31,7 +31,7 @@ minetest.register_craft({ recipe = { {"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:electrum_gear", ingot, "elepower_dynamics:electrum_gear"}, + {"elepower_dynamics:electrum_gear", "elepower_dynamics:lcd_panel", "elepower_dynamics:electrum_gear"}, } })