mojira.dev
MC-313803

Foxes that trust two players don't defend the second player while the first one is in the same dimension

The Bug:

Foxes that trust two players don't defend the second player while the first one is in the same dimension.

Steps to Reproduce:

  1. Switch to creative mode, set the difficulty to normal, and open a world to LAN.

  2. Have a second player join your world in survival mode.

  3. Place down a fox next to the second player using a spawn egg.

  4. Make the fox trust you and then the second player by using the commands provided below.

    /data modify entity @n[type=minecraft:fox] Trusted append from entity @s UUID
    /data modify entity @n[type=minecraft:fox] Trusted append from entity @p[distance=0.1..] UUID
  5. Place down a zombie next to the second player using a spawn egg.

  6. Observe if the fox attacks the zombie once the zombie attacks the second player.

Observed Behavior:

Foxes don't defend the second player they trust while the first one is in the same dimension.

Expected Behavior:

Foxes would defend both players they trust.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Mob behaviour

26.3, 26.4 Pre-Release 3

Retrieved