The Trap is a Misc Structure that acts as an automated defense/source of damage.
The Trap's default state is unarmed, and can be armed immediately, by interacting with it. The Trap cannot be disarmed manually and remains armed until an entity (object (i.e. log), a dropped item, passive creature, enemy or player) moves into the Trap's range, immediately above it. A player can reset the Trap after five seconds, if a player tries to reset the Trap too soon after being triggered, a message will display, "Trap is not ready yet."
Caution is advised when setting/arming Traps, as they can kill the player.