diff options
-rw-r--r-- | mesecons_gates/init.lua | 10 | ||||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_nor.png | bin | 0 -> 251 bytes | |||
-rw-r--r-- | mesecons_gates/textures/jeija_gate_or.png | bin | 0 -> 243 bytes |
3 files changed, 10 insertions, 0 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua index 78a3e83..dde85bf 100644 --- a/mesecons_gates/init.lua +++ b/mesecons_gates/init.lua @@ -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", "", ""}}) diff --git a/mesecons_gates/textures/jeija_gate_nor.png b/mesecons_gates/textures/jeija_gate_nor.png Binary files differnew file mode 100644 index 0000000..c4298e3 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_nor.png diff --git a/mesecons_gates/textures/jeija_gate_or.png b/mesecons_gates/textures/jeija_gate_or.png Binary files differnew file mode 100644 index 0000000..09f0661 --- /dev/null +++ b/mesecons_gates/textures/jeija_gate_or.png |