Guide talk:Wiring

Logic Gate?
With a great deal of inventiveness, it may be possible to build logic gates, after a fashion. There are a couple of things that I can see having a sort of on/off state: lighting, doors, and timers. I see no way to test lighting and get an output signal.

Doors seem easiest to manipulate. You can wire one switch to open it and a separate one to close it. This way, you know which state it will be in. That way if another mechanism sends multiple "open" signals, it will simply be open, rather than opening and closing several times to some random end state.

I'm more fuzzy on how to actually use its state for any purpose. It would be possible to use mobs hopping or walking through open doors to activate a pressure plate. It feels more elegant to have opened doors release a liquid... although I don't know how this "output" would be converted into a signal. Perhaps by bouying slime and lifting them off a pressure plate? I'm also not sure how either of these interacts with despawn/rendering range.

Timers have a definite on and off state. The downside is that players would toggle this blindly. (When toggling it, there isn't an "on" switch and an "off" switch. This may be a minor detail though.) It can be attached to pumps to bouy a slime as before or drain a chamber, allowing them to activate a plate (repeatedly, of course).

Perhaps this is an exercise in futility. Does anyone else have thoughts to share? -- TechpriestMagos 23:48, 6 January 2012 (UTC)
 * the issue with making (static, non-clocked) logic gates, is that terraria's wiring system is purely a toggle and no "signal". a person on the forums made some ok models for (clocked) logic gates by using bunny statues and active/inactive stones to redirect the bunnys' path to different buttons.  in preference, that was only nice design out of the few he posted. 98.132.163.231 11:44, 7 January 2012 (UTC)
 * I've done some thinking about this stuff. Because the wiring systems are toggle based, it is difficult to make gates.   Also because you can't query the state of a network or say a torch, you can't make a decision gate of any kind.   It is possible to make a flip flop using mine carts, and it is possible to make one shot switches using actuators.   The game would have to be extended to include simple logic gates to improve the functionality.   The only gate required would be a NOR gate or a NAND since all the other gates can be made from those two functionally complete gates.   I have some videos on youtube on Gamer channel Channel by my character Poozly that show how to make various switches and a flip flop.  Because you can make a one shot, you can also make a non mine cart flip flop, but I've not actually implemented it at this time.   Electronically a flip flop is a divider of a signal, but it doesn't constitute a functionally complete gate so we can't make other gates out of it.

Functional Statues link
Can someone please add this link somewhere in the 'Statues' section: terraria.gamepedia.com/Statues#Functional_statues