How to build a pen in minecraft

Show

How to build a pen in minecraft

Example of using wheat to bring a cow to the player.

The basic design for a ranch is an enclosure made of fences, with a fence gate for an entrance. However, when farming animals, it may be difficult to keep all animals in the farm, yet still allow you to get in and out of the farm. There are several ways to handle this:

  • Dig holes. Dig a hole outside of the farm, at least three blocks deep (two for the tunnel, one for the ceiling). Place ladders as needed. Tunnel under the fence, and dig up under the farm. Place more ladders. Since pigs, cows, and sheep are more than one block wide, they will not fit in the hole, causing them to run in circles trying to get in the hole. However, baby animals and chickens can fit in a one block hole, so you may want to place a trapdoor at the top.
  • A better way to utilize holes is to dig down one block, dig out the surrounding blocks and change them to fence or cobblestone walls. Add carpets on the wall and you can go out while the animals cannot.
  • You can also extend your fence to form a "mob lock"—a small buffer separating the pen from outside with a fence gate to each. This area should be large enough for at least two of the animals in question. For cows and sheep, making both sides a double gate will make moving animals in and out much easier. Animals that escape into the lock can be pushed or led back into the pen, or simply slaughtered.
  • A flashier version of this is to use two fence gates with a pressure plate between them. You open one gate and as you pass over the pressure plate, it opens the other gate. The "off" signal made by the pressure plate returning up will close both gates. The whole event is quick enough to thwart any possible pathing out by the animals. However, if the animals are not kept from the entrance, one could trigger the pressure plate, causing a "stampede".
  • You can forego fences and other blocks and simply dig a pit at least two blocks deep, providing access with a ladder. Almost all mobs will very rarely climb a ladder, even if the pit is very crowded. This also makes it easy to guide the mobs in, either by pushing them or leading them in with food.
  • By far, the simplest and least space-consuming method is to use a single post of nether brick fence between regular posts. This will create a single pillar that you can walk around but larger animals cannot pass as nether brick fence does not connect up with regular wooden fence. Unlike a gate, this isn't easily switchable, which may be an issue when bringing animals into your farm.
  • Build a stile. Construct a pen as normal but replace one section of fence with a solid block topped by a slab. On the inner side of the block add a section of ladder; against the outer, a section of stairs. Now mobs can freely follow you into the pen but cannot leave as the stile is 11⁄2 blocks high, the same as fencing, and mobs rarely climb ladders. Note that stiles also work well for large enclosures, such as around your base or a village, with the stairs facing inwards and the ladder outwards. They are faster to use than gates and cannot accidentally be left open.
  • A very easy method is to place a piece of carpet or a trapdoor above one of the fence posts. This will allow players up by jumping but not most mobs. This is very similar to the one utilizing holes. If you use an iron trapdoor, you can also "lock" the entrance by using redstone to open it.
  • Another simple way is to put up a block of dirt inside and outside the fence with at least one block open in between, and using it to jump over, but of course this should only be used when the animals are already inside, as new animals cannot be brought into the enclosure in this way.
  • Another method is to use leads to attach mobs to a single fence post. Keep in mind that when the player leaves the area, it is very likely that the leads will randomly break off.

See also[]

  • Mob
  • Tutorials/Animal farming
  • Tutorials/Construction
  • Tutorials/Walls and buttresses