mojira.dev
MC-94484

Villagers & baby zombies not recognizing blocked doors correctly

Villagers

Open and close doors continuously, failing to accomplish their goal of getting in or out, when a door is blocked from either the inside or the outside of a house.

Note: Bug reproduces more rarely when a villager is outside the house.

Baby Villagers 1

Ignore or don't enter houses with doors blocked by the upper or lower half at nighttime, even if they're small enough to go inside. But if the top half of a door is blocked, sometimes they do go inside, but less frequently than unblocked doors at nighttime. Seemingly as frequent as when villagers enter unblocked doors at daytime. Also, when they decide to enter, they walk slowly towards the house to enter it, just like at daytime.

Baby Zombies 2

Don't break doors that are blocked by the lower half.

1 To reproduce (baby villager)

  1. Build a house with a door

  2. Block the lower half or the top half of the door

  3. Summon baby villager outside the house

    /summon Villager ~ ~1 ~ {Age:-6000}
  4. Set time to night to more easily see the bug

    /time set night
  5. Observe the issue

2 To reproduce (baby zombie):

  1. Build a house with a door

  2. Block the lower half of the door

  3. Summon baby zombie that can break doors outside the house

    /summon Zombie ~ ~ ~ {IsBaby:1,CanBreakDoors:1}
  4. Go inside the house with survival mode

  5. Observe the issue

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
migrated

It seems as though villagers are trying to path diagonally. Surround a villager on all four sides by a cobblestone wall, but without the corners. The villager will keep trying to path to a corner, even though it can't fit between the cobblestone walls. Add the corners, and the villager won't try to path anywhere. The same behavior can be observed with other blocks that villagers consider movement inhibiting (full blocks, rails, etc.).

So, if a door is blocked such that the barrier is extended by one block to either side, it seems as though the villager will not repeatedly open/close the door, since the diagonals are also blocked.

migrated

I have also observed that if you place two doors with one in front of the other in a house, and a Villager tries to get in, the Villager continuously opens and closes the valent door, and the Villager never actually gets in the house, though in the technical aspects, the Villager would be inside the house, because the Villager is between the two doors, I'm going to create a new ticket for that issue.

migrated

Ticket created, see MC-97042

migrated

Villagers are still trying to path to unreachable corners in 16w07a. May relate to the issues partially addressed by MC-94438.

migrated

What about 1.9.1 pre-releases?

migrated

Can confirm for 1.9.1 & 1.9.2 (See Screenshots)

migrated

To Reproduce for Villager:
1. Make a valid house.
2. Place a block next to the outside of the door to obstruct it, so that Villagers on the inside can open/close it, but can't exit.
3. Spawn a Villager on the inside of the house you made.\ 4. Observe effects.

migrated

Can Confirm for baby zombie.

migrated

Clarifying the comment I made on 13/Feb/16, the villager thinks that the second door is an obstruction, when really, the Villager can also open that door too, making the bug MC-97042 I reported.

migrated

Confirmed for 1.13.1.

migrated

Also a bug on MCPE, but not only baby zombies and not only bottom half.

wobst.michael

Can this still be reproduced in 20w30a or later?

migrated

(Unassigned)

Confirmed

(Unassigned)

AI, baby-villager, baby-zombie, door, pathfinding, villager

Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w06a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, ..., Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w16b, Minecraft 1.13.1

Retrieved