mojira.dev
MC-171640

Villagers, vindicators and zombies don't properly interact with the new crimson/warped doors

The bug

Some mobs don't properly interact with the new crimson/warped doors:

  • Villagers/vindicators can't open the crimson/warped doors like they normally do to other doors.

  • Zombies/vindicators can't break crimson/warped doors, like they normally do to other doors in sieges and raids.

Notes: For personal testing of this issue, replace all existing doors in a village with the crimson/warped doors and observe how villagers, vindicators and zombie behave.

Results

  • Villagers are stuck inside/outside of their own houses.

  • Vindicators are unable to break/open these doors, during a raid.

  • Zombies with the CanBreakDoors tag are unable to break/open these doors.

Code Analysis

Code analysis by @unknown can be found in this comment

Linked issues

Attachments

Comments 5

Code Analysis

Using yarn's mappings for 2OwO6a.

In

net/minecraft/entity/ai/goal/DoorInteractGoal#isWoodenDoor

method, only the blockstates that both are instanceof DoorBlock and are made of Material.WOOD can be interacted. Crimson/warped doors which are Material.NETHER_WOOD are not considiered.

Are you sure this affects 20w07a and 20w08a? I was able to reproduce this in 20w06a, but not in 20w07a or 20w08a. (All of my testing was with villagers.) I'll attach a video of a villager opening/closing a crimson door in 20w08a. The villager behaves a little strangely by walking away from the door at first, but that might just be general villager quirkiness.

Please resolve the ticket as it is fixed in 20w08a.

Then, why did you mark it as affected in 20w07a and 20w08a?

@unknown, can you confirm that this has been fixed in 20w07a for all the cases mentioned above?

I may have mark those version by accident. Sorry, my mistake.

DrownedZombie

migrated

Confirmed

Important

Mob behaviour

20w06a, 20w07a, 20w08a

20w09a

Retrieved