summaryrefslogtreecommitdiff
path: root/mesecons_detector
diff options
context:
space:
mode:
authorCloudyProton <34248863+CloudyProton@users.noreply.github.com>2018-01-14 15:21:43 -0500
committerVitaliy <silverunicorn2011@yandex.ru>2018-01-14 23:21:43 +0300
commit02f8d29170b1b742618ba7816f57e12cc0f66027 (patch)
tree628706845fab9792f9884921813c52aea1e99bbd /mesecons_detector
parent2b096f050d8ef46ec0a669ea4e125ae79745090e (diff)
downloadmesecons-02f8d29170b1b742618ba7816f57e12cc0f66027.tar
mesecons-02f8d29170b1b742618ba7816f57e12cc0f66027.tar.gz
mesecons-02f8d29170b1b742618ba7816f57e12cc0f66027.tar.bz2
mesecons-02f8d29170b1b742618ba7816f57e12cc0f66027.tar.xz
mesecons-02f8d29170b1b742618ba7816f57e12cc0f66027.zip
Microcontroller craft fallbacks for detectors (#390)
Register both luacontroller and microcontroller variations of detector craft recipes.
Diffstat (limited to 'mesecons_detector')
-rw-r--r--mesecons_detector/init.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua
index 08c2d04..fc7d4c3 100644
--- a/mesecons_detector/init.lua
+++ b/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,