Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273710

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w46a
    • 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.

      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.

            Unassigned Unassigned
            Viradex Viradex
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: