summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2017-09-11 21:26:37 +0200
committersfan5 <sfan5@live.de>2017-09-11 21:26:37 +0200
commit3ef8ae01e7888444aed59565f54f4f2ef3416f37 (patch)
tree3f083a970394c6b1ed8f902bc2006ec4f72c53a0
parent42cd97392110993db6c19d9c8af2a468d72f2ab1 (diff)
downloadmesecons-3ef8ae01e7888444aed59565f54f4f2ef3416f37.tar
mesecons-3ef8ae01e7888444aed59565f54f4f2ef3416f37.tar.gz
mesecons-3ef8ae01e7888444aed59565f54f4f2ef3416f37.tar.bz2
mesecons-3ef8ae01e7888444aed59565f54f4f2ef3416f37.tar.xz
mesecons-3ef8ae01e7888444aed59565f54f4f2ef3416f37.zip
Add conversation recipes for Lua- and Microcontroller (#354)
-rw-r--r--mesecons_microcontroller/init.lua29
1 files changed, 21 insertions, 8 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index b241713..ef78f60 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -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})