From 3a701cf3e1ca8c5bd0a031b03a0f466bac543695 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 16 Jun 2020 12:40:30 +0200 Subject: [PATCH] add recipe --- init.lua | 1 + mod.conf | 2 +- readme.md | 1 - recipe.lua | 15 +++++++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 recipe.lua diff --git a/init.lua b/init.lua index 343a043..8cbc8cf 100644 --- a/init.lua +++ b/init.lua @@ -13,3 +13,4 @@ dofile(MP.."/digiline_rules.lua") dofile(MP.."/digiline_validate_pos.lua") dofile(MP.."/digiline.lua") dofile(MP.."/node.lua") +dofile(MP.."/recipe.lua") diff --git a/mod.conf b/mod.conf index 6cf8909..ad87d2e 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = digibuilder depends = digilines -optional_depends = default, pipeworks +optional_depends = default, pipeworks, mesecons_luacontroller diff --git a/readme.md b/readme.md index b9acfc5..84d21d0 100644 --- a/readme.md +++ b/readme.md @@ -52,7 +52,6 @@ For code examples for the `luacontroller` see the "examples" directory # Open issues -* [ ] recipe * [ ] `after_place_node(pos, placer, itemstack, pointed_thing)` compat (digtron mod?) * [ ] Storage of read schematics/buildings diff --git a/recipe.lua b/recipe.lua new file mode 100644 index 0000000..8cec74d --- /dev/null +++ b/recipe.lua @@ -0,0 +1,15 @@ + +if minetest.get_modpath("mesecons_luacontroller") then + + local c = "mesecons_luacontroller:luacontroller0000" + + minetest.register_craft({ + output = "digibuilder:digibuilder", + recipe = { + {c,c,c}, + {c,c,c}, + {c,c,c} + } + }) + +end