Skip to content
Permalink
Browse files

Microcontroller craft fallbacks for detectors (#390)

Register both luacontroller and microcontroller variations of detector craft recipes.
  • Loading branch information...
CloudyProton authored and numberZero committed Jan 14, 2018
1 parent 2b096f0 commit 02f8d29170b1b742618ba7816f57e12cc0f66027
Showing with 18 additions and 0 deletions.
  1. +18 −0 mesecons_detector/init.lua
@@ -108,6 +108,15 @@ minetest.register_craft({
}
})

minetest.register_craft({
output = 'mesecons_detector:object_detector_off',
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "mesecons_microcontroller:microcontroller0000", "default:steel_ingot"},
{"default:steel_ingot", "group:mesecon_conductor_craftable", "default:steel_ingot"},
}
})

minetest.register_abm({
nodenames = {"mesecons_detector:object_detector_off"},
interval = 1,
@@ -270,6 +279,15 @@ minetest.register_craft({
}
})

minetest.register_craft({
output = 'mesecons_detector:node_detector_off',
recipe = {
{"default:steel_ingot", "group:mesecon_conductor_craftable", "default:steel_ingot"},
{"default:steel_ingot", "mesecons_microcontroller:microcontroller0000", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
}
})

minetest.register_abm({
nodenames = {"mesecons_detector:node_detector_off"},
interval = 1,

0 comments on commit 02f8d29

Please sign in to comment.
You can’t perform that action at this time.