Doors

A Door is a Placeable object, similar to other furniture, with the added benefit of preventing the passage of enemy NPCs while allowing players to easily leave places. It can be placed in any space so long as it is exactly three blocks high, with a ceiling and a floor.

Town NPCs will open and close doors as they wander about. Players can do the same by right-clicking on them. Enemy NPCs will not open doors except for Skeletons, Undead Miners, Goblins, Angry Bones, and Face Monsters. Zombies can also open doors during a Blood Moon, and Goblin Peons can break down doors, as if they were destroyed by a player. Possessed Armor can open doors whether or not a Blood Moon is present.

Doors can be opened and closed through Wires. If you put wire on one of the door's closed-state squares, then wiring will toggle the door's closed/open state upon activation, but if you put wires on the side squares, where the door opens, then wiring will only close the door.