mojira.dev
MC-150820

Villagers run away from hostile mobs that are on the same team as them

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:

  1. Create a team by using the command provided below.

    /team add MC-150820
  2. 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"}
  3. Observe the behavior of the villager closely.

  4. 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

Comments 2

For your information, wandering traders are not villagers (not the same entity).

This ticket relates to MC-193743.

RWQFSFASXC395248

Avoma

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

villager

Minecraft 1.14, 1.15.2, 20w17a, 20w18a, 20w19a, ..., 1.20.6, 1.21, 1.21.3, 1.21.4, 25w08a

Retrieved