[mesecons] Add NOR and OR gates, and documentation
1
mods/mesecons/mesecons_gates/doc/and/description.html
Normal file
@ -0,0 +1 @@
|
||||
And gates power their output if both inputs (from left and right) are powered.
|
BIN
mods/mesecons/mesecons_gates/doc/and/preview.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
mods/mesecons/mesecons_gates/doc/and/recipe.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
1
mods/mesecons/mesecons_gates/doc/diode/description.html
Normal file
@ -0,0 +1 @@
|
||||
Mesecon diodes, just like real ones, only transfer power (signals) in one direction only.
|
BIN
mods/mesecons/mesecons_gates/doc/diode/preview.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
mods/mesecons/mesecons_gates/doc/diode/recipe.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
1
mods/mesecons/mesecons_gates/doc/nand/description.html
Normal file
@ -0,0 +1 @@
|
||||
Nand gates do not power their output if both inputs (from left and right) are powered, but power it in every other case.
|
BIN
mods/mesecons/mesecons_gates/doc/nand/preview.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
mods/mesecons/mesecons_gates/doc/nand/recipe.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
1
mods/mesecons/mesecons_gates/doc/nor/description.html
Normal file
@ -0,0 +1 @@
|
||||
Nor gates only power their output if none of their two inputs is powered. They are basically or gates with a not gate at their output.
|
BIN
mods/mesecons/mesecons_gates/doc/nor/preview.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
mods/mesecons/mesecons_gates/doc/nor/recipe.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
1
mods/mesecons/mesecons_gates/doc/not/description.html
Normal file
@ -0,0 +1 @@
|
||||
Not gates invert signals, just like a mesecon torch does, but faster. The input is at the opposite side of the output.
|
BIN
mods/mesecons/mesecons_gates/doc/not/preview.png
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
mods/mesecons/mesecons_gates/doc/not/recipe.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
1
mods/mesecons/mesecons_gates/doc/or/description.html
Normal file
@ -0,0 +1 @@
|
||||
Or gates power their output if either of their inputs (or both) are powered. You could basically get the same behaviour with two diodes, but or gates save some space.
|
BIN
mods/mesecons/mesecons_gates/doc/or/preview.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
mods/mesecons/mesecons_gates/doc/or/recipe.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
1
mods/mesecons/mesecons_gates/doc/xor/description.html
Normal file
@ -0,0 +1 @@
|
||||
XOR gates power their output if only one input is powered, they're off if either both or none of the inputs is powered.
|
BIN
mods/mesecons/mesecons_gates/doc/xor/preview.png
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
mods/mesecons/mesecons_gates/doc/xor/recipe.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
@ -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", "", ""}})
|
||||
|
BIN
mods/mesecons/mesecons_gates/textures/jeija_gate_nor.png
Normal file
After Width: | Height: | Size: 251 B |
BIN
mods/mesecons/mesecons_gates/textures/jeija_gate_or.png
Normal file
After Width: | Height: | Size: 243 B |