mojira.dev
MC-12427

Mobs get stuck in the North-West corner of a fence

In forest hills: When farming farm animal mobs one mob is "stuck" in the NW corner of a fenced area.

Steps to reproduce
1. Create a corner fence that is pointing to the north-west.
2. Spawn a mob and push it into the corner.
3. It won't be able to get out of there.

Linked issues

MC-16407 glitched villagers Resolved MC-16410 Animals get trapped in North-West corner of fences. Resolved MC-17709 Fence Bug Resolved MC-22814 Animals get stuck in fence corners Resolved MC-33047 Egg spawning Bug Resolved

Attachments

Comments 40

I see this regularly... chickens get stuck in corners and chicks seem to get stuck on any fence post.

The chickens won't even leave the corners when shown seeds.

dirk (switched to Minetest)

To me it looks like all animals are “attracted” by fences. I almost never see them wandering around in the fenced area but touching the fences more or less all the time.

Adam C. Kooyer

It doesn't matter what type of farm mob it is.

I've got sheep, cows, chiduckens and pigs all in separate pens (wooden fence.) One mob of each is stuck in the NW corner and only the NW corner. If you attempt to lure or breed with respective food--they cannot be lured and the other mob must come to them for the breeding to work. If you punch or attack the mob with a tool or weapon, it will not move or run.

Adam C. Kooyer

Still happening in 1.5.1 – Added screen shot.

Related to MC-4661, possibly MC-12000. Probably caused by the AI attempting to find a path to a point on the other side of the fence. The directional bias could be a result of the search algorithm.

30 more comments

^Indeed, rabbits are the biggest problem of all. I have had around 75 rabbits in a pen for a while, and recently I noticed that most of them had gone "missing". After inspecting their enclosure, I realized that about 50 of them had all become lodged in a northwest corner of the fencing.

Seems to be fixed in 16w07a (and going back to 15w49b, maybe 'a').

From extended observations on mobs, animals and villagers alike, all prefer selecting 'north west' (if you live in the northern hemisphere) wandering directions. Whether in a pen, or on an island, or as part of a village, within a cavern, or what have you.

This seems to be a preference in direction, or an absence of preference in the south east, for all common AI wandering behavior. Clearly this behavior was meant to select an apparent random direction.

Computer science tells us 'random' is rarely truly random; and in this case, the technique employed may require further testing to confirm proper results.

Most recently observed in a village: all villagers dispersed evenly upon discovery, and by the fifth day, all villagers in the north west region.

Windows Minecraft 1.10.2
'Hope that helps.

Will Rynearson

Um, this is still an issue... or it came back somehow. I get one of any type of animal stuck in the North West corner of a fenced in area if there is more than one type of animal in the area (I have just one donkey in a fenced in area and it's not stuck yet, but I have just 2 horses and one is always in the NW corner). I don't know if I should open a new ticket or if this can be reopened... I'll leave this comment for now and if it doesn't reopen in a week I'll submit a new one since I don't see any new bugs with this description.

Santoso Wijaya

I've seen my chickens getting stuck in ALL corners of a fenced in area.

Adam C. Kooyer

(Unassigned)

Confirmed

animal, chicken, corner, cow, mob, north, pig, sheep, west

Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w19a, Snapshot 13w21a, ..., Minecraft 14w27b, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w45a

Minecraft 16w07a

Retrieved