add recipe

This commit is contained in:
BuckarooBanzay 2020-06-16 12:40:30 +02:00
parent 2b538c3a3d
commit 3a701cf3e1
4 changed files with 17 additions and 2 deletions

@ -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")

@ -1,3 +1,3 @@
name = digibuilder
depends = digilines
optional_depends = default, pipeworks
optional_depends = default, pipeworks, mesecons_luacontroller

@ -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

15
recipe.lua Normal file

@ -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