From d8c8c21fd4f84a38816d9da381506e3bd1f45f74 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 16 Jan 2021 19:47:34 +0100 Subject: [PATCH] Add test file for custom recipes --- custom_recipes.lua | 159 +++++++++++++++++++++++++++++++++++++++++++++ init.lua | 1 + 2 files changed, 160 insertions(+) create mode 100644 custom_recipes.lua diff --git a/custom_recipes.lua b/custom_recipes.lua new file mode 100644 index 0000000..0c19925 --- /dev/null +++ b/custom_recipes.lua @@ -0,0 +1,159 @@ +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "X X", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#X", + "X X", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##", + " ## ", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##X", + " ## ", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##X#", + " ## ", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##X#X", + " ## ", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##X#X", + " ## ", + "#X#X#", + "#X#X#", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) + +i3.register_craft({ + grid = { + "X #", + " ## ", + "X#X#", + "#X#X#", + "X X##X#X", + " ## ", + "#X#X#", + "#X#X#", + "X #", + }, + key = { + ['#'] = "default:wood", + ['X'] = "default:glass", + }, + result = "default:mese 3", +}) diff --git a/init.lua b/init.lua index 017136c..3328b04 100644 --- a/init.lua +++ b/init.lua @@ -2846,3 +2846,4 @@ on_leaveplayer(function(player) end) --dofile(core.get_modpath("i3") .. "/tabs.lua") +--dofile(core.get_modpath("i3") .. "/custom_recipes.lua")