Are animals programmed to escape their pens?

Are animals programmed to escape their pens? - Cattle Behind Wire Fence during Daytime

I'm sure many of you Minecraft fans have noticed that animals always seem to try and escape their pens as soon as there is an escape route.

Are they programmed to do this? If so, is it simply to 'spread out' and find a larger area, or are they actively trying to escape captivity?



Best Answer

No, any passive mob will not attempt to 'escape' if there is an exit made when they are contained. However, They will rush towards the player if the player is holding wheat, and if the player happens to be standing by the exit, it may seem as if they rush out of the exit.

Another possibility is that there is grass outside of the pen, but not inside. This would cause the animals to move towards the blocks with grass. The same thing goes for light, as animals in a darkened environment will move towards an environment that is better illuminated.

These are pretty much the only things, as animals will move more or less randomly apart from these circumstances.




Pictures about "Are animals programmed to escape their pens?"

Are animals programmed to escape their pens? - Girl in Gray Jacket Feeding White Goat
Are animals programmed to escape their pens? - Horses Standing in a Horse Pen
Are animals programmed to escape their pens? - Cows and Bulls on Farm



How do you keep animals in your pen in Minecraft?

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"\u2014a 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.

How do you get out of animal pens in Minecraft?

If a carpet is put on a fence, a player can then jump over fences, but mobs can't. Fences and Nether Brick Fences do not connect. This allows players and villagers to go through these kinds of fences, but not mobs.



Stoffel, the honey badger that can escape from anywhere! - BBC




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: veeterzy, Anastasia Shuraeva, Koen Swiers, Giorgi Iremadze