From 60518668d5d1a8e27f34336849bf50e71af14c38 Mon Sep 17 00:00:00 2001 From: isaiah658 Date: Sat, 16 Jun 2018 02:03:48 -0500 Subject: Add drawer controller (#19) Drawer controllers can sort items into drawer in a certain range. As normal drawers they have support for pipeworks and MineClone 2. Crafting ingredients are one drawer, two diamonds, four steel/iron ingots and a copper and tin ingot or two gold ingots. --- init.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index fd66846..a7cc3d9 100755 --- a/init.lua +++ b/init.lua @@ -67,6 +67,7 @@ drawers.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]" dofile(MP .. "/lua/helpers.lua") dofile(MP .. "/lua/visual.lua") dofile(MP .. "/lua/api.lua") +dofile(MP .. "/lua/controller.lua") -- -- cgit v1.2.3 From d8e1d83fd6a6db04fdc96bc77e5018d2c3f8345e Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 10 Sep 2018 19:57:23 +0200 Subject: MCL2: Fix drawer upgrade inventory background --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index a7cc3d9..2e079eb 100755 --- a/init.lua +++ b/init.lua @@ -57,8 +57,12 @@ drawers.enable_2x2 = not core.settings:get_bool("drawers_disable_2x2") -- drawers.gui_bg = "bgcolor[#080808BB;true]" -drawers.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]" drawers.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]" +if (core.get_modpath("mcl_core")) and mcl_core then -- MCL2 + drawers.gui_bg_img = "background[5,5;1,1;crafting_creative_bg.png;true]" +else + drawers.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]" +end -- -- Load API -- cgit v1.2.3 From bc48fc0c077a453c20d758318eee6ad6d06783b9 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Tue, 11 Sep 2018 17:52:07 +0200 Subject: Add Wooden Trim for easy drawer network connections This node is only used for connecting drawers, so that they are all in one drawer network and can be used with a drawer controller. --- init.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 2e079eb..ebdf5fb 100755 --- a/init.lua +++ b/init.lua @@ -314,6 +314,24 @@ elseif core.get_modpath("mcl_core") and mcl_core then }) end +-- +-- Register drawer trim +-- + +core.register_node("drawers:trim", { + description = S("Wooden Trim"), + tiles = {"drawers_trim.png"}, + groups = {drawer = 1, choppy = 3, oddly_breakable_by_hand = 2} +}) + +core.register_craft({ + output = "drawers:trim 6", + recipe = { + {"group:stick", "group:wood", "group:stick"}, + {"group:wood", "group:wood", "group:wood"}, + {"group:stick", "group:wood", "group:stick"} + } +}) -- -- Register drawer upgrade template -- cgit v1.2.3