[MC-1434] Animal mobs pathfind through open fence gates even if not being led. Created: 31/Oct/12  Updated: 03/Jun/17  Resolved: 08/Nov/12

Status: Closed
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Geoffrey Hyde Assignee: Unassigned
Resolution: Works As Intended Votes: 0
Labels: animal, fence_gate, pathfinding
Environment:

Java 7 64-bit for Windows 7 Note: this bug is not environment specific.


Confirmation Status: Unconfirmed
Game Mode: Survival

 Description   

Animals in a pen will start pathfinding towards open fence gates, even if they are not being led with the appropriate food type. This makes it very time-consuming and difficult to sort mobs properly as random animal mobs will pathfind through the fence gates that have been opened to let a wanted animal type through. It would be a lot simpler if animal pathfinding through open gates was turned off and only turns on if the animal mob is being led with the appropriate food type for that animal.

Note: Animal movement in pens really needs a complete overhaul, and I need a food type that would only lead sheep so I could separate them from cows, but this random pathfinding behavior of the animals I'm not leading towards fence gates is very annoying, especially if there are large groups of animals.

Also related to this issue is the fact that I have noticed that only a few pigs will be able to make it through double fence gates and that other pigs trying to follow carrots will suddenly get stuck on the fence instead and not pathfind properly towards the fence gate. Perhaps this is an issue with too many other mobs trying to pathfind at the same time towards an opening, which is the only reason I mention it in this issue report. The pigs appear to get stuck "into" the fence, like they've suddenly been captured by the fence instead of pathfinding towards an open gate in it. Possibly this is a bounding box issue with pigs and fences, if so please let me know so I can report it as a separate issue.



 Comments   
Comment by Talven81 [ 01/Nov/12 ]

Ok normally I save this for the forums, however you have been attempting to resolve something you honestly thought was a bug and I appreciate the effort.

When animals follow you, they take up a certain amount of space in front of you. When many are together they will push on each other, frequently pushing them too wide. They want to get as close to you as possible.

The way I build my farms resolves this issue. My farms are built in 5x5 (or multiples of, 10x10,20x10 etc.)

I recommend doing it like this.
G=Gate

GGGG
 
 
 
GGGG

To prevent escape secure your entrance.
G=Gate
P=Pressure Plate

GGGG
PPPP
GGGG
 
 
 
Comment by Geoffrey Hyde [ 01/Nov/12 ]

I do have a question about the pig behavior, though, the last paragraph of my issue report outlines the details of that above. Is that a "feature" or a bug? If that is an already existing bug on this tracker could someone please insert a link to it so I don't have to report something that already exists. I do not think pigs should crowd through double fence gates and make some pigs ignore the gate and stop pathfinding behavior. If it is a feature it is a very annoying feature and will be reported as an annoyance on the appropriate site once consensus on whether it's a bug or annoyance can be reached.

Comment by Geoffrey Hyde [ 31/Oct/12 ]

I will add that my initial belief still stands, even though it was flagged as not a bug. I reported it, because I believed that it was a bug, and was reporting it in good faith as such. Thanks to everyone involved for handling it properly and not getting annoyed at such things as incorrectly reported bugs that are annoyances.

Comment by Cloudy (Aaron Mills) [ 31/Oct/12 ]

Bugs are bugs, annoyances are annoyances. Only bugs go in this tracker at this time. Bugs should not go in the wiki, even if annoyances should do. If you put them in the wiki, they won't get fixed - and who does that benefit?

Comment by Talven81 [ 31/Oct/12 ]

Mojang will decide when they want to allow feature requests/modifications to the JIRA Bug Tracker, which they do not want at this time. Until then please follow proper procedure, by posting bug reports only, or it will simply result in the mods or Mojang closing your ticket as happened with this one.

Comment by Geoffrey Hyde [ 31/Oct/12 ]

To Talven Turog: I do not believe something being an annoyance should be sent to the Minecraft forums, they already do not browse there much. If this bug tracker is not able to handle annoyances, then I would have no option but to move my bug reporting back to the Minecraft wiki, however, I would like to see this bug tracker of Mojang's succeed first.

Mojang wants all issues in one place, annoyances are issues, therefore they should be filed on this bug tracker site as what they are, it's just up to Mojang to decide when they will allow annoyances to be reported as what they really are.

Comment by Cloudy (Aaron Mills) [ 31/Oct/12 ]

Not a bug - working as intended.

Comment by sciguyryan [ 31/Oct/12 ]

You can leave the bug open and a someone will come along to see if it is worth looking at.

I will add that, as an open fence gate is a path-find friendly block (there is an empty space for mobs to move through) this shouldn't be fixed. Annoying it may be but mobs can move through an open door so I don't see why it would (or should) be different here.

Comment by Talven81 [ 31/Oct/12 ]

You don't, this site is a bug tracker.

This site is for bug reports only. For feature suggestions/changes please use the MineCraft Forums: Suggestions.

Comment by Geoffrey Hyde [ 31/Oct/12 ]

Then it is an annoyance, how would I flag this as such? I have not yet learned how to flag an issue as an annoyance on this bug tracker.

Comment by [Mod] CubeTheThird [ 31/Oct/12 ]

This is not a bug.

Comment by sciguyryan [ 31/Oct/12 ]

I do not believe this is a bug. It is probably intended behaviour.

Generated at Sun Jan 12 11:54:26 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.