Skip to content
Permalink
Browse files

Gates: Add OR and NOR gate

  • Loading branch information...
Jeija committed Nov 20, 2015
1 parent b89fe52 commit 75bd081a67a2ac52b8a0eea1e051a456d288c71d
@@ -122,3 +122,13 @@ register_gate("xor", 2, function (val1, val2) return (val1 or val2) and not (val
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:silicon", "mesecons_materials:silicon"},
{"mesecons:mesecon", "", ""}})

register_gate("nor", 2, function (val1, val2) return not (val1 or val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons_materials:mesecon_torch_on", "mesecons_materials:silicon"},
{"mesecons:mesecon", "", ""}})

register_gate("or", 2, function (val1, val2) return (val1 or val2) end,
{{"mesecons:mesecon", "", ""},
{"", "mesecons:mesecon", "mesecons:mesecon"},
{"mesecons:mesecon", "", ""}})
Binary file not shown.
Binary file not shown.

0 comments on commit 75bd081

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