mojira.dev
MC-273710

Wild foxes "trust" the player after being leashed to a fence

The Bug

Wild foxes do not run away from the player after being leashed to a fence and detached. These foxes exhibit similar behavior to trusting foxes.

Additionally, the wild foxes do not have data in the Trusted NBT tag, meaning they should run away from the player.

Steps to Reproduce

Ensure you are in Survival mode while testing this.

  1. Summon a fox and leash it to a fence using a lead.

  2. Remove the lead off of the wild fox.

Observed Results

The fox does not run away from the player. Comparing this to the behavior of a newly-spawned wild fox shows an obvious difference, as the wild fox will immediately run from the player.

Use this command to observe how the leashed fox does not trust the player. If the array is empty, the fox does not trust the player.

/data get entity @n[type=minecraft:fox] Trusted

The fox runs away from the player like normal after reloading the world.

Expected Results

Foxes run away from the player even when leashed and unleashed.

Comments 1

Seems to be fixed in 24w46a; the fox now runs away from the player.

Viradex

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

1.21, 1.21.1 Release Candidate 1, 1.21.1, 24w33a, 24w34a, ..., 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3, 24w45a

24w46a

Retrieved