Doors

Doors are furniture items that prevent enemies from entering an area when closed. Players can open them by pressing the on them. Doors can be placed in any space so long as it is exactly three blocks high, with ceiling and floor blocks.
Friendly NPCs will open and close doors during the day as they wander about.
Enemies that follow the Fighter AI can open doors, with a few exceptions. Additionally, Goblin Peons can remove doors entirely on contact, while Angry Bones and Butchers can open them with one hit.
Doors can also be opened and closed via Wires. If you put wire on the door's hinge, then the wiring will toggle the door's closed/open state upon activation, but if you put wires on the side tiles, where the door opens, then the wiring will only close the door.
The Lihzahrd Door occurs naturally at the entrance to the Jungle Temple, and initially requires a Temple Key to open. Once unlocked, it can be freed with a pickaxe or drill, and placed again by the player like any other door. Lihzahrd Doors can also be crafted, but their crafting station can only be obtained after opening the initial door, and the ingredients require the Picksaw (or better) to mine, which is dropped by Golem. Destroying the blocks either above or below a locked Lihzahrd Door does not destroy it.
Apart from the standard doors listed here, there also exist Trap Doors and Tall Gates, which behave similarly. Every block in the game can also be used like a (Switch-toggled) door via Actuators.
There are currently 39 / 30 / 22 / 19 craftable and 6 noncraftable types of doors which must be looted from various locations in the world.
== Crafting ==
=== Recipes ===
== Noncraftable doors ==
Door	Door	Notes
* Wooden, Rich Mahogany, Boreal, Sandstone, Skyware, Mushroom, Granite, Marble, Living Wood and Lihzahrd Doors can also be looted from various locations in the world.
== Notes ==
* Doors open to the left or right based on which direction the player faces, rather than the direction they are coming from. For example, if a player stands to the left of a door and faces left, the door will open toward the player – to the left. If the player does not move and then turns to the right and opens the door, it will now open to the right.
* Putting a platform or furniture (such as a Torch or even a second door) on one side of the door prevents it from being opened in that direction. This is useful to keep houses safe from enemies during some events like the Blood Moon, as they will always attempt to open the doors inward. On the , doors opened by players will attempt to open to the other side when blocked.
* Doors open automatically when approached by players. This option can toggled in the Settings.
* Doors hold back liquids when closed.
** If exposed to lava while open, doors (except for Obsidian Doors) will break automatically, but while closed, will hold back lava like they would water and honey.
* While opened, all doors take up 2×3 tiles. While closed, the dimensions are 1×3 tiles.
** Thus, it is more economical to paint doors when they are closed, as it would only require 3 Paint.
** Additionally, if one randomly paints one of the two spots in each row of an open door, and then closing it, opening it again will apply paint to the entire door.
* If a door that a player is grappled to is opened, the hook will be released and the player will be flung several tiles in the direction the door was opened in.
== Tips ==
* In order to open a door, fighters need to be directly in front of it and on the same level as the base of the door. Therefore, a hole of 2×1 blocks in front of the door will prevent them from opening it.
== Trivia ==
* Pine Doors don a wreath very similar to the Holly item, most likely due to being crafted from Pine Tree Blocks, which are only obtainable from Presents dropped during the Christmas season.
* Mushroom Zombies are the only Zombies in the game that can open doors outside of a Blood Moon.
* Even though they are made out of tougher materials, the Lead, Stone and Iron Doors are functionally identical to the other doors.
== History ==