mojira.dev
MC-157212

Trusted fox hostile AI seems to be broken. Foxes ONLY defend players from mobs that shoot arrows, but ignores mobs that uses melee attacks and projectile entites that are not arrows.

The bug

Trusted foxes in version 1.14.4 does not defend the player from mobs that uses melee/projectile attacks but attacks mobs that uses a bow and arrow. I let an endermite hit me while the trusted fox was near, the fox didn't growl or chase and attack the endermite. I tried to let a mob attack me by getting shot by an arrow (skeletons, strays, illusioners, pillagers and wither skeletons with bows.) and the fox growled at them and chases the skeleton. As of the snapshots for 1.15, they also ignore bees stinging the player they trust.

How to reproduce

  1. Summon trusted fox

    /summon fox ~ ~1 ~ {TrustedUUIDs:[{L:0L,M:0L}]}
  1. Spawn a skeleton

  2. Go to survival and let them shoot you then the fox growls

  3. Spawn a mob that uses melee

  4. Go to survival again, and the fox is not growling

Mobs that foxes attack

  • Skeletons

  • Strays

  • Wither skeletons (Armed with a bow)

  • Illusioners

  • Pillagers

  • Players (Multiplayer; modifiying a fox's TrustedUUIDs tag so that it defends mobs from players.)

Getting hit with an arrow from one of the mobs that shoots arrows aggro trusted foxes. It is also impossible for a trusted fox to attack an exploding creeper, as the creeper kills itself by exploding.

Foxes may ignore the following (Except for arrows and creepers)

  • Melee attacks

  • Ravager roars

  • Llama/Trader llama spit

  • Ghast/blaze fireballs

  • Evoker fangs

  • Splash potions (from witches/other players)

  • Shulker bullets

  • Snowballs/eggs (Thrown by other players/snow golems)

  • Tridents (thrown by drowned/players)

  • Thorns enchantment

  • Pufferfish/guardian thorns

  • Bee stings

Out of all of these various mob attacks, foxes seems to generally prioritize of defending the player from mobs that shoots arrows. The cause of this issue may have existed after the fix that causes trusted foxes to attack [self-injured|MC-153749] players. There is no confirmation about foxes not defending mobs that does not shoot arrows is an intended behavior. No changes were mentioned in the minecraft.net nor tweets by the developers that foxes only defends arrow-shooting mobs instead of all mobs.

Linked issues

Attachments

Comments 3

This is not a bug.

This has changed from 1.14.3+.

Trusted foxes are just trusting you, they don't have to protect you like Wolf.

Trusted Foxes are like cats.

 

I read all the blog posts and nowhere did it say that foxes would no longer defend you. The developers even fixed MC-153749 in 1.13.3 so that foxes wouldn't attack you for attacking yourself, so that you can fight alongside your foxes and they won't attack you if you inflict damage on yourself (eg: splash potion of harming).

@[Helper] gaspoweredpick That fixed may have accidentally broke the trusting behavior of foxes in general, as in, not defending players from getting attacked by any other mobs as they only prioritize to defending players from arrow-shooting mobs.

DrownedZombie

coschevi

Confirmed

Important

Mob behaviour

1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, ..., 19w40a, 19w42a, 19w45a, 19w45b, 1.15 Pre-release 1

1.15 Pre-Release 2

Retrieved