AND: SPRKs nearby NSCN when powered by 2 or more PSCN
OR: Conducts from PSCN to NSCN
NOT: SPRKs nearby NSCN unless powered by PSCN
XOR: SPRKs nearby NSCN when powered by ONE PSCN
NAND: SPRKs nearby NSCN unless powered by 2 or more PSCN
XNOR: SPRKs nearby NSCN unless powered by ONE PSCN
Lua Source: http://pastebin.com/HM3LuEps
Simply save in your Powder Toy folder as tptlogic.lua (or another name) and in the TPT console (~) type dofile("tptlogic.lua")
Just one thing, I'm not sure what the 'nt' argument for the update function is for, so I ignored it. Could someone please inform me of it's purpose?
This is pretty cool, but I have noticed a couple of things:
Also, not that this is a big deal, but the description for XNOR is the same as for AND. :P
The XOR gate acts like a normal OR gate, but besides that, it works fine. It is a great mod, especially for your first.
This is cool! Gonna download it
This mod is amaze, use it all the time!
Unfortunately, at least the NOT gate (not sure about the others) can only be used one at a time. If I try to place a second NOT gate, it doesn't work until I place it while the other one isn't spawning an electron and then the other NOT gate stops working.