forked from Mirrorlandia_minetest/mesecons
Add conversation recipes for Lua- and Microcontroller (#354)
This commit is contained in:
parent
42cd973921
commit
3ef8ae01e7
@ -144,14 +144,27 @@ end
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
if minetest.get_modpath("mesecons_luacontroller") then
|
||||||
output = 'craft "mesecons_microcontroller:microcontroller0000" 2',
|
minetest.register_craft({
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'},
|
output = "mesecons_microcontroller:microcontroller0000",
|
||||||
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'group:mesecon_conductor_craftable'},
|
recipe = {"mesecons_luacontroller:luacontroller0000"},
|
||||||
{'group:mesecon_conductor_craftable', 'group:mesecon_conductor_craftable', ''},
|
})
|
||||||
}
|
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.reset = function(pos)
|
||||||
yc.action(pos, {a=false, b=false, c=false, d=false})
|
yc.action(pos, {a=false, b=false, c=false, d=false})
|
||||||
|
Loading…
Reference in New Issue
Block a user