From 2ddc3fc7a12c9419186dd7430a3f36279452c56f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Thu, 13 Dec 2018 21:52:09 +0100 Subject: [PATCH] Craft recipes for keyboards --- crafts.lua | 53 +++++++++++++++++++++++++++++++++++++++++++---------- depends.txt | 1 + 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/crafts.lua b/crafts.lua index 2ab79cc..4045c1b 100644 --- a/crafts.lua +++ b/crafts.lua @@ -42,13 +42,12 @@ local electronic = material_fallback({ 'default:copper_ingot', }) -local wire = 'digilines:wire_std_00000000' +local button = material_fallback({ + 'mesecons_button:button_off', + 'default:stone', +}) -print("Craft materials:") -print("Body: "..(body or "None!")) -print("Glass: "..(glass or "None!")) -print("Electronic: "..(electronic or "None!")) -print("Wire: "..(wire or "None!")) +local wire = 'digilines:wire_std_00000000' minetest.register_craft({ output = "digiterms:lcd_monitor 1", @@ -60,19 +59,53 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "digiterms:cathodic_amber_monitor", + output = "digiterms:cathodic_beige_monitor", recipe = { - {body, body, ''}, + {body, body, 'dye:yellow'}, {glass, 'dye:orange', electronic}, {body, body, wire} } }) minetest.register_craft({ - output = "digiterms:cathodic_green_monitor 1", + output = "digiterms:cathodic_white_monitor", recipe = { - {body, body, ''}, + {body, body, 'dye:white'}, {glass, 'dye:green', electronic}, {body, body, wire} } }) + +minetest.register_craft({ + output = "digiterms:cathodic_black_monitor", + recipe = { + {body, body, 'dye:black'}, + {glass, 'dye:white', electronic}, + {body, body, wire} + } +}) + + +minetest.register_craft({ + output = "digiterms:beige_keyboard", + recipe = { + {button, button, 'dye:yellow'}, + {body, body, wire} + } +}) + +minetest.register_craft({ + output = "digiterms:white_keyboard", + recipe = { + {button, button, 'dye:white'}, + {body, body, wire} + } +}) + +minetest.register_craft({ + output = "digiterms:black_keyboard", + recipe = { + {button, button, 'dye:black'}, + {body, body, wire} + } +}) diff --git a/depends.txt b/depends.txt index 771586c..ee955cc 100644 --- a/depends.txt +++ b/depends.txt @@ -9,4 +9,5 @@ basic_materials? homedecor? mesecons_microcontroller? mesecons_luacontroller? +mesecons_button? mesecons_materials?