The Bug:
Villagers run away from hostile mobs that are on the same team as them.
By default, villagers are designed to run away from hostile mobs such as zombies and husks, but when both the villager and the hostile mob are on the same team, the villager will still try and run away from the given entity.
Steps to Reproduce:
Create a team by using the command provided below.
/team add MC-150820
Summon a hostile entity, for example, a husk, along with a villager close to one another that are both on the same team by using the commands provided below.
/summon minecraft:husk ~ ~ ~ {Team:"MC-150820"}
/summon minecraft:villager ~ ~ ~ {Team:"MC-150820"}
Observe the behavior of the villager closely.
Take note as to whether or not villagers run away from hostile mobs that are on the same team as them.
Observed Behavior:
Villagers run away from hostile mobs that are on the same team as them.
Expected Behavior:
Villagers would not run away from hostile mobs that are on the same team as them.
Linked issues
is duplicated by 1
relates to 2
Comments 2
This ticket relates to MC-193743.
For your information, wandering traders are not villagers (not the same entity).