-
Bug
-
Resolution: Fixed
-
1.21, 24w33a, 1.21.1 Release Candidate 1, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2 Pre-Release 1, 1.21.2 Pre-Release 2, 1.21.2 Pre-Release 3, 1.21.2 Pre-Release 4, 1.21.2 Pre-Release 5, 1.21.2 Release Candidate 1, 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3, 24w45a
-
None
-
Confirmed
-
Survival
-
Mob behaviour
-
Low
-
Gameplay
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.
- Summon a fox and leash it to a fence using a lead.
- 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.