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)