Fence

Fences are used to keep curious people off your land (and items), or to keep your animals from escaping. A single part of fence requires 6 wooden stakes. Fences can be used as a trap-fences, which block the way of the animals and guide them straight into a trap, usually trap pit. The player can climb over them.

In the "Handcraft Options" menu, openned with command [Shift + M], in the "Traps" menu there is the "Build trap-fence" option, that makes the exact same fence as the "Fence" in the "Building and constructions" menu.