summaryrefslogtreecommitdiff
path: root/mesecons_gates/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_gates/init.lua')
-rw-r--r--mesecons_gates/init.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua
index 089d608..b58e0bc 100644
--- a/mesecons_gates/init.lua
+++ b/mesecons_gates/init.lua
@@ -140,3 +140,48 @@ mesecon:register_on_signal_change(function(pos,node)
end
end)
+minetest.register_craft({
+ output = 'mesecons_gates:diode_off',
+ recipe = {
+ {'', '', ''},
+ {'mesecons:mesecon', 'mesecons_torch:mesecon_torch_on', 'mesecons_torch:mesecon_torch_on'},
+ {'', '', ''},
+ },
+})
+
+minetest.register_craft({
+ output = 'mesecons_gates:not_off',
+ recipe = {
+ {'', '', ''},
+ {'mesecons:mesecon', 'mesecons_torch:mesecon_torch_on', 'mesecons:mesecon'},
+ {'', '', ''},
+ },
+})
+
+minetest.register_craft({
+ output = 'mesecons_gates:and_off',
+ recipe = {
+ {'mesecons:mesecon', '', ''},
+ {'', 'mesecons_materials:silicon', 'mesecons:mesecon'},
+ {'mesecons:mesecon', '', ''},
+ },
+})
+
+minetest.register_craft({
+ output = 'mesecons_gates:nand_off',
+ recipe = {
+ {'mesecons:mesecon', '', ''},
+ {'', 'mesecons_materials:silicon', 'mesecons_torch:mesecon_torch_on'},
+ {'mesecons:mesecon', '', ''},
+ },
+})
+
+minetest.register_craft({
+ output = 'mesecons_gates:xor_off',
+ recipe = {
+ {'mesecons:mesecon', '', ''},
+ {'', 'mesecons_materials:silicon', 'mesecons_materials:silicon'},
+ {'mesecons:mesecon', '', ''},
+ },
+})
+