Skip to content

Commit

Permalink
Add conversation recipes for Lua- and Microcontroller (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour authored and sfan5 committed Sep 11, 2017
1 parent 42cd973 commit 3ef8ae0
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions mesecons_microcontroller/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,27 @@ end
end
end

minetest.register_craft({
output = 'craft "mesecons_microcontroller:microcontroller0000" 2',
recipe = {
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'},
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'},
{'group:mesecon_conductor_craftable', 'group:mesecon_conductor_craftable', ''},
}
})
if minetest.get_modpath("mesecons_luacontroller") then
minetest.register_craft({
type = "shapeless",
output = "mesecons_microcontroller:microcontroller0000",
recipe = {"mesecons_luacontroller:luacontroller0000"},
})
minetest.register_craft({
type = "shapeless",
output = "mesecons_luacontroller:luacontroller0000",
recipe = {"mesecons_microcontroller:microcontroller0000"},
})
else
minetest.register_craft({
output = 'craft "mesecons_microcontroller:microcontroller0000" 2',
recipe = {
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'},
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'},
{'group:mesecon_conductor_craftable', 'group:mesecon_conductor_craftable', ''},
}
})
end

yc.reset = function(pos)
yc.action(pos, {a=false, b=false, c=false, d=false})
Expand Down

0 comments on commit 3ef8ae0

Please sign in to comment.