Talk:Logic Gates

From Terraria Wiki
Jump to navigation Jump to search

Unless they're changing the way wire signals work, couldn't you imitate a NOT gate by simply flipping the switch before you connect it to the thing you want to connect through a NOT gate? I used that method for lighting up alternating sets of lights in one project.

Functionally, that might be a NOT gate, but it would not technically be one. A true NOT gate should emit a signal when the lamp goes off. What you're talking about is simply having wiring/mechanisms that are reverse-synced to the lamp. Alfonse215 (talk) 23:20, 26 May 2016 (UTC)

Re: Counting machine

Can't you create a 'pulse divider' (that is, a device which outputs a signal for every two input signals) using just a randomiser gate with a single lamp?

An example of such a device is on my user page. The blue wire there only shows that the order of activating the lamps doesn't matter.

- Andrio Celos (talk) 07:20, 14 July 2016 (UTC)

Image in the set/reset flip-flop (SR flip-flop) section

Afaik, one of the regular lamps in the image needs to be in an off state for it to work as described. Tried to revert the edit to give author time to fix the image without misleading people in the meanwhile, but got stopped by abuse filter:section removal. 86.115.19.146 12:14, 31 July 2017 (UTC)

Shoot. I'll get that updated shortly. 104.132.34.64 14:42, 2 August 2017 (UTC)

"Either/Or" gate, or "EveryOther" gate, should be added under "Useful Circuits"

This is a gate that will mirror an attached switch by emulating... a switch. In the screencap(s), the switch is in the default placed position, and will activate the Announcement Box on the same side as the switch's toggle (left will activate left, right will activate right).

  • This may be used in conjunction with day/night sensors to make a needlessly complicated morning/night announcement.
  • Or, by using only one output, you can make it activate an object every time the lever/switch is in one position, but not the other.
  • By using this, you can make circuits that would be otherwise difficult, with the way Terraria uses wires.

It's original use (in my world) is displaying where the Minecart Track (which is attached to the same lever, not pictured here) will currently lead.

It was vaguely based off a button→switch "Set/Reset Gate" logic circuit I'd used to use in Survivalcraft- any number of buttons attached to a wire, which in turn was attached to the Input, Set, and Reset of the gate- and a light to the Output. Any time any button was pressed, the light would toggle it's state, from On to Off, and vise-versa.

Red: Input Blue: Logic toggle loop Yellow/Green: Output


File:Announcement Box example.png

Above: The circuit having been activated twice- the switch first going left, then returning right, and triggering the correlated Announcement Box.

In this example:

  • Left: [i:2701][c/C83800:The Underworld]
  • Right: [i:1508][c/00caf9:The Dungeon]

Skyetheterriblebeastie (talk) 01:58, 17 September 2017 (UTC)