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: Unresolved
    • None
    • 1.21, 24w33a, 1.21.1 Release Candidate 1, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a
    • 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
            Arnav78 Viradex
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: