
Introduction - Wiring in Terraria
Hello everyone!
I wrote this thread with the purpose of giving everyone an approachable starter guide centered around wiring in Terraria. I hope you will enjoy reading through it and that it will open your eyes to the possibilities that wiring in Terraria provides!
Terraria is a game with 3 primary goals: Dig, Fight, Build!
The focus of this thread is to give you some guidance on building - more specifically, the wiring and mechanical side of building in Terraria. Wiring in Terraria refers to using certain triggers, wires and devices to build automated or advanced contraptions to accomplish a wide array of tasks and functions. Using the Terraria wiring system, you can do many things such as, but not limited to:
I wrote this thread with the purpose of giving everyone an approachable starter guide centered around wiring in Terraria. I hope you will enjoy reading through it and that it will open your eyes to the possibilities that wiring in Terraria provides!
Terraria is a game with 3 primary goals: Dig, Fight, Build!
The focus of this thread is to give you some guidance on building - more specifically, the wiring and mechanical side of building in Terraria. Wiring in Terraria refers to using certain triggers, wires and devices to build automated or advanced contraptions to accomplish a wide array of tasks and functions. Using the Terraria wiring system, you can do many things such as, but not limited to:
- Using automatic doors that only open or close for players
- Placing street lights that only turn on at night
- Defending your home from monsters with a variety of traps
- Advanced machines limited only by your imagination - from animated fountains to player accelerators to digital displays and much, much more!
Start Here First: Prerequisites to wiring
So, as with most things in Terraria, you have to explore your world in order to gain access to wiring. Not sure where to go? No worries, just follow the steps below and you will be ready to start building clever Terrarian machines in no time! In order to begin wiring in Terraria, you will need to...
- Go to a certain ominous place at night
- Defeat the evil guardian blocking its entrance
- Wander around inside, until you find this fair maiden
- Save her, so she can sell you her quite reasonably priced tools required to place and remove wires - a critical component to building machines in Terraria!
- It is probably wise at this point to build a room for her in your establishment so she that may live in a place that is easy to access
- Once you have completed the adventure outlined above, you will then be ready to begin freely exploring messing all that wiring in Terraria has to offer!
Back to Basics: Tools, Triggers, Devices, and Traps
After you've met the requirements necessary to unlock the wiring tools, it's time to dive in and learn more about what is possible and how it all works!
The Basic Workflow of Wiring
Setting up a simple wired machine in Terraria is really quite easy. Once you have the necessary Tools, a Trigger, and a Device you simply follow the three steps below to get everything hooked up:
Note: The list isn't full - just introductory - You can also find or craft some of these, not everything is store-bought!
Tools
The Tools category covers the items and supplies that you will need to lay wires to connect all of your machinery together.
Triggers
Items you find in this category are always placeable, and are able for you to interact with in a certain way. When used, they will affect all devices connected to them with wire. The form of interaction changes between each of them, and the act of interaction is referred to as triggering - hence the name Triggers.
Devices
Items you find in this category are always placeable, and when affected by wire (via a Trigger) their function will be activated.
Traps
Items you find in this category are devices often found while exploring the world that can harm you and NPCs alike. To avoid ruining the surprise for newcomers to Terraria - this section only lists one of the more commonly-encountered traps, but these instructions will work for any trap!
The
Dart Trap - most commonly found underground, shoots a poison dart at the direction it is facing whenever activated, for example.
Giving it a Try: Some Basic Wiring Examples
EXAMPLE #1: Automatic Door
After knowing what tools, triggers, and devices you have, you can now put them to work! Following The Basic Workflow, let's make an automatic door!
EXAMPLE #2: Automated Defenses
After making a simple automatic door, you can probably tackle something more advanced, such as an automatic defense for your home. Following The Basic Workflow again, we can wire up a defensive trap like so...
EXAMPLE #3: Simple Toggled Lights
The 1.3.1 Update has added Sensors - These fit into the Trigger category, as they trigger based on a specified condition.
I'd like to emphasize that
Logic Sensor (Player Above) can trigger from two cases - both when a player enters its detection range AND when leaving that range.
Logic Gates
Prior to the 1.3.1 Update, complex machines in Terraria required quite massive structures in order to perform the Logic functions central to their operation. This update greatly simplifies that process and makes it so much more accessible: without further ado, I give you... Logic Gates.
To understand how Logic Gates work, you need to have a good understanding of "binary". Binary is an adjective that means "having only two states" (ON / OFF, for example) and is critical to all modern computing devices.
Logic gates are devices that take multiple binary inputs & compare them against a condition. For example, this
Logic Gate (AND) compares to the condition "this AND that are ON.".
So how do you feed input into logic gates? by using
Logic Gate Lamps.
Logic Gate Lamps are devices that have an ON/OFF state, can only be placed above gates or other lamps & on activation they toggle their state.
Lastly, let's look into the gates themselves.
Logic gates - these fit into the Trigger category, as they trigger based on their conditional state's changes.
The Gated Workflow
It is important to note that if you intend to use logic gates, your basic workflow changes.
Confused? Don't be! Let's look at a few examples to help it all come together and make sense.
Putting Binary to Work: Logic Gate Examples
Following The Gated Workflow, let's make a "secret passage" that opens up if you flip two levers on. This is actually pretty simple, check it out...
EXAMPLE USAGE #2 - OR Gate
The Basic Workflow of Wiring
Setting up a simple wired machine in Terraria is really quite easy. Once you have the necessary Tools, a Trigger, and a Device you simply follow the three steps below to get everything hooked up:
- Place the device you want to manipulate
- Place a trigger which will manipulate it
- Connect the two with wire
Note: The list isn't full - just introductory - You can also find or craft some of these, not everything is store-bought!
Tools
The Tools category covers the items and supplies that you will need to lay wires to connect all of your machinery together.
Items you find in this category are always placeable, and are able for you to interact with in a certain way. When used, they will affect all devices connected to them with wire. The form of interaction changes between each of them, and the act of interaction is referred to as triggering - hence the name Triggers.
Devices
Items you find in this category are always placeable, and when affected by wire (via a Trigger) their function will be activated.
There are many other Devices for you to discover in Terraria! Some of our favorites include: Water Fountains, Teleporters, Fireworks!
Traps
Items you find in this category are devices often found while exploring the world that can harm you and NPCs alike. To avoid ruining the surprise for newcomers to Terraria - this section only lists one of the more commonly-encountered traps, but these instructions will work for any trap!
- Traps work exactly like other Devices - requiring a Trigger and a wired connection to set them off.
- Many of the traps in Terraria may be rotated when hit with a hammer.
- After activation, there is a delay until it can be activated further - usually lasts 1~3 seconds.


Giving it a Try: Some Basic Wiring Examples
EXAMPLE #1: Automatic Door
After knowing what tools, triggers, and devices you have, you can now put them to work! Following The Basic Workflow, let's make an automatic door!
The steps to making this clever time-saving machine are quite simple, let's see...- Place the device - in this case a
- Place a trigger - in this case a
- Connect the two with
- Voila! You are the proud owner of one Automatic Door!
Here's a slow-mo of these steps in action

After making a simple automatic door, you can probably tackle something more advanced, such as an automatic defense for your home. Following The Basic Workflow again, we can wire up a defensive trap like so...
- Place the device - in this case a
- Place a trigger - in this case we will use a
- Connect the three with
Here's a slow-mo of these steps in action

For convenience, one common use of wires is toggled lights for your base, let's try that out.
Following The Basic Workflow once more, we can wire up a light fairly easily.
Following The Basic Workflow once more, we can wire up a light fairly easily.
- Place the device - in this case a
- Place a trigger - in this case we will use a
- Connect the two with
Here's a slow-mo of these steps in action

Taking it to the Next Level: New & Advanced Triggers - Sensors & Logic Gates
In the previous section we covered all the basic usage elements of wires, most of which were already available in Terraria for years. However, the 1.3.1 Update brings with it a fresh set of possibilities via all new Trigger types! Now that you understand the basic elements of Wiring, we can learn to use more these advanced triggers - such as Sensors & Logic Gates.
SensorsThe 1.3.1 Update has added Sensors - These fit into the Trigger category, as they trigger based on a specified condition.

Prior to the 1.3.1 Update, complex machines in Terraria required quite massive structures in order to perform the Logic functions central to their operation. This update greatly simplifies that process and makes it so much more accessible: without further ado, I give you... Logic Gates.






To understand how Logic Gates work, you need to have a good understanding of "binary". Binary is an adjective that means "having only two states" (ON / OFF, for example) and is critical to all modern computing devices.
Logic gates are devices that take multiple binary inputs & compare them against a condition. For example, this

So how do you feed input into logic gates? by using


Lastly, let's look into the gates themselves.
Logic gates - these fit into the Trigger category, as they trigger based on their conditional state's changes.
It is important to note that if you intend to use logic gates, your basic workflow changes.
- Place the device you want to manipulate
- Place the Logic Gate of the condition you wish to check & the required amount of logic gate lamps for it
- Place at least one additonal trigger per Logic Gate Lamp
- Connect the Logic Gate to the device with wire
- Connect each Logic Gate Lamp to a trigger using wires of different colors

Putting Binary to Work: Logic Gate Examples
EXAMPLE USAGE #1 - AND GateFollowing The Gated Workflow, let's make a "secret passage" that opens up if you flip two levers on. This is actually pretty simple, check it out...
- Place the device - in this case a few
- Place logic gate and lamps - in this case an
- Place triggers for each lamp, in this case two
- Connect the logic gate to the actuators with
- Connect each logic gate lamp to a lever with differently colored
Here's a slow-mo of these steps in action

Often when making games or adventure maps, there's a need to create conditions that can only be toggled in one direction, such as "finished a quest" or "solved this puzzle".
Following The Gated Workflow, we can make a gate that can only turn on once and then stay on forever, let's do that!
EXAMPLE USAGE #3 - XOR GateFollowing The Gated Workflow, we can make a gate that can only turn on once and then stay on forever, let's do that!
- Place the device - in this case a
- Place logic gate and lamps - in this case an
- Place triggers for each lamp, in this case we only need one
- Connect the logic gate to the door & one of the logic lamps with
- Connect the other logic gate lamp to a lever with differently colored
Here's a slow-mo of these steps in action
The result is that the door will open once and stay opened forever after 1 flick of the lever, because the conditions for it to remain open are "flicked the lever OR did the gate activate at least once" - which happens thanks to the lever flick!
There's some situations where you'd like to detect if a choice has been made out of multiple ones, and if so - which choice?
For example, of choosing between GOOD or EVIL, you want to give someone the choice and not let them proceed until they've picked their side.
Following The Gated Workflow, it can be done using XOR gate with any number of choices you'd like.
For example, of choosing between GOOD or EVIL, you want to give someone the choice and not let them proceed until they've picked their side.
Following The Gated Workflow, it can be done using XOR gate with any number of choices you'd like.
- Place the device - once again a
- Place logic gate and lamps - in this case an
- Place triggers for each lamp, two
- Connect the logic gate to the door with
- Connect the each logic gate lamp to a lever with differently colored
Here's a slow-mo of these steps in action

Last edited by a moderator: