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