mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-25 01:40:18 +01:00
Gates: Add OR and NOR gate
This commit is contained in:
parent
b89fe52469
commit
75bd081a67
@ -122,3 +122,13 @@ register_gate("xor", 2, function (val1, val2) return (val1 or val2) and not (val
|
|||||||
{{"mesecons:mesecon", "", ""},
|
{{"mesecons:mesecon", "", ""},
|
||||||
{"", "mesecons_materials:silicon", "mesecons_materials:silicon"},
|
{"", "mesecons_materials:silicon", "mesecons_materials:silicon"},
|
||||||
{"mesecons:mesecon", "", ""}})
|
{"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
mesecons_gates/textures/jeija_gate_nor.png
Normal file
BIN
mesecons_gates/textures/jeija_gate_nor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 251 B |
BIN
mesecons_gates/textures/jeija_gate_or.png
Normal file
BIN
mesecons_gates/textures/jeija_gate_or.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 243 B |
Loading…
Reference in New Issue
Block a user