[MC-696] Pets disobeying sit commands by helping player when attacked and within a certain radius Created: 26/Oct/12  Updated: 28/May/19  Resolved: 23/May/19

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.5, Minecraft 1.6.2, Minecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w21b, Minecraft 1.7.10, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8.1, Minecraft 1.8.7, Minecraft 1.8.9, Minecraft 15w51b, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w44a, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 18w05a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w11a, Minecraft 1.13-pre1, Minecraft 1.13, Minecraft 1.13.1, Minecraft 18w50a, Minecraft 19w07a, Minecraft 19w12b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 5
Fix Version/s: Minecraft 1.14.1

Type: Bug
Reporter: jake mcnaughton Assignee: Unassigned
Resolution: Fixed Votes: 59
Labels: attacking, owner, pets, sitting

Issue Links:
Duplicate
is duplicated by MC-10109 Cats stand up if player is hit by mob... Resolved
is duplicated by MC-19533 Wolves act oddly Resolved
is duplicated by MC-26775 Dogs get up on their own Resolved
is duplicated by MC-28442 Pets Stand When You Take Damage Resolved
is duplicated by MC-29334 Where ever I go my a lot of my pets t... Resolved
is duplicated by MC-49634 Wolf glitch Resolved
is duplicated by MC-51222 Sitting puppies teleport when grown. Resolved
is duplicated by MC-51875 Wolf Moving While Sitting Resolved
is duplicated by MC-55431 Sitting and "teleporting" tamed adult... Resolved
is duplicated by MC-75513 Tamed cat and dog glitch Resolved
is duplicated by MC-78296 Sitting dog moving. Resolved
is duplicated by MC-104806 Extremely rarely, when you are attack... Resolved
is duplicated by MC-105350 Sat cats move when player is hurt. Resolved
is duplicated by MC-115932 Sitting baby wolf/ocelot teleports to... Resolved
is duplicated by MC-118546 Sitting parrots fly if you take damag... Resolved
is duplicated by MC-118958 My parrots teleport even if they are ... Resolved
is duplicated by MC-119024 Request to reopen closed issue with s... Resolved
is duplicated by MC-119552 Cat who gets up alone Resolved
is duplicated by MC-126709 Parrots start flying when the player ... Resolved
is duplicated by MC-128764 Multiple parrot issues (dismounting w... Resolved
is duplicated by MC-137104 Phantoms Cause any pet that is sittin... Resolved
is duplicated by MC-149066 Cats and Parrots teleporting with Pha... Resolved
is duplicated by MC-151127 Non dogs pets following the player wh... Resolved
is duplicated by MC-2470 Tamed wolf, directed to sit, follows ... Resolved
is duplicated by MC-3197 Wolves/Dogs teleporting when sitting Resolved
is duplicated by MC-3644 Wolves walking sit Resolved
is duplicated by MC-4166 Problems with tamed dogs Resolved
is duplicated by MC-4760 Tamed wolves glitch. Resolved
Relates
relates to MC-153188 Tamed Wolves/dogs not going after hos... Resolved
relates to MC-28440 Sitting child pets teleporting to own... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Survival
Category:
(Unassigned)

 Description   

The bug

When the owner of a sitting pet is attacked within a 12 meters radius around the pet it stands up. For wolves this could be intended since they can help their owner, however often if not always the owner made them sit on purpose to not accidentally hit them or be pushed of blocks by them while fighting. But for pets which cannot attack, like ocelots or parrots, this behavior makes no sense.

How to reproduce

  1. Tame a parrot and make it sit
  2. Spawn a monster within a 12 meters radius from the parrot and let it damage you
    → The parrot starts flying

Code analysis

Based on 1.12 decompiled using MCP 9.40 PRE 1

The method net.minecraft.entity.ai.EntityAISit.shouldExecute() cancels sitting if the owner is within 12 meters and net.minecraft.entity.EntityLivingBase.getAITarget() does not return null.



 Comments   
Comment by Ezrovernum [ 22/May/19 ]

Just tested with a parrot and a wolf in 1.14.2-pre3. Both were ordered to sit, then I spawned a zombie in front of them, which attacked me. Neither of the animals stood up. Further testing in multiplayer is needed.

Comment by Fabian Röling [ 22/May/19 ]

This appears to be fixed in 1.14.2-pre3! Can anyone still reproduce this?

Comment by Ezrovernum [ 23/Mar/19 ]

Still happening in 19w12b. My parrots always get killed in stupid ways because of them flying towards the creepers I'm fighting.

Comment by Jon1337 [ 14/Feb/19 ]

Still in 19w07a

Comment by Maxence MENIF [ 11/Sep/18 ]

Still in 1.13 and it's a bit annoying when you want to make a farm of creeper using cat AI to move creepers out. Parrots also teleport to you whenever you're attacked while they are not fighting pets (like cats) which is really annoying too. Sitting dogs out of a certain range should not teleport neither to help you. This can be very annoying when you fight in caves for instance. Also, I think nerby sitting dogs who stand up to help you fighting nerby ennemis should sit down again after there is no hostile entity attacking you (because they are dead or they're too far to chase you (this could be applied for "hostile" players too)), instead of teleporting to you. Actually, there is absolutly no benefice for sitting pets to teleport to their owner when they're under attacked. If they are ordered to sit, we want them to sit and not following us until they are ordered to stand. It's simple like that.

Comment by Rudolf Šimo [ 19/Aug/18 ]

Still in 1.13..

Comment by Barlennan [ 26/Mar/18 ]

I noticed this behaviour a while ago when I shot myself with a bow while on a skyblock server in which I had bred a lot of wolves. My wolves got up and ran around, then sat back down after a while.

Comment by Aaron Rhodes [ 02/Feb/18 ]

Confirmed in 18w05a. Tamed cats, wolves, and parrots stop sitting and teleport to the player when the player takes damage from a mob attack. Unrelated sources of injury do not cause this behavior.

Comment by user-5dbda (Inactive) [ 21/Jul/17 ]

I also opened a similar ticket MC-119024 and someone closed it as duplicate however my main difference was I was NOT attacked by anything I was just breaking blocks when my wolves appeared by me and were STILL SITTING!

Comment by Karuna Boyum [ 26/Jun/17 ]

I made a similar report recently re parrots (MC-118546). For me nearby sitting parrots start flying if I take damage from a hostile mob.

Comment by Kyle Cuthbert [ 23/Jun/17 ]

I'm having this happen with parrots without being hit, even in creative mode. I'm not sure how "danger" is determined, so should this be a separate report?

Comment by CDES5 (Inactive) [ 12/Dec/16 ]

Does this affect Minecraft 1.11?

Comment by [Mod] Neko [ 07/Aug/16 ]

1.10.2 is already listed.

Comment by LegyTLM [ 07/Aug/16 ]

Can confirm for 1.10.2

Comment by Fabian Röling [ 22/Jun/16 ]

Confirmed for 1.10.1.

Comment by Fabian Röling [ 09/Jun/16 ]

Confirmed for 1.10.

Comment by Commander Sealand [ 01/Mar/16 ]

Confirmed for 1.9.0 for both cats and wolfs

Comment by James (inactive) [ 23/Dec/15 ]

Confirmed for 1.8.9 and 15w51b.

Comment by Chris olson [ 02/Mar/15 ]

Approved This happens sometimes!

Comment by Koala_eiO [ 08/Dec/14 ]

I think I know where this bug comes from.
In my experience pets actually obey their sit command, but they "stand up" a short amount of time when being pushed by other mobs. They teleport at this moment.

Comment by a [ 08/Nov/14 ]

present in 1.8.1-pre4

Comment by Galaxy_2Alex [ 24/Oct/14 ]

Reopened.

We are only closing issues as Incomplete on which noone did anything for quite a lohg period of time. "Awaiting Response" is just a middle thing.

Comment by a [ 24/Oct/14 ]

Confirmed for 1.8.1-pre3
Combine with MC-10109?

Also why would anything get marked as resolved just because no one has reported the issue in a while? MC has a LOT of issues, and not all of them are very obvious. The closure policy should not be this loose.

Comment by a [ 19/Aug/14 ]

present in 14w34d.
Combine with MC-10109?

Comment by a [ 13/Aug/14 ]

Easily reproducible on 14w33a. Request title change to reflect the actual issue (dogs/tamed wolves disobeying sit commands by helping player in danger when within a certain radius).

This also is present in 1.7.10, but after the dogs get up, they don't sit back down (I think they sit back down in the snapshots, but I can't remember).

Comment by a [ 30/Jul/14 ]

This is present in 1.7.10. I had sitting wolves teleport to me when I attacked a creeper.

Comment by vis [ 04/Jun/14 ]

still happens in 14w21b

Comment by Guillermo Jimeno Espinosa [ 03/Apr/14 ]

I can confirm this still happens in 14w11b. A sitting wolf teleported about 60 chunks away and appeared, still sitting, next to me.

Comment by Orion Humphrey [ 21/Feb/14 ]

Still in 14w08a.

Comment by [Mod] Ezekiel (ezfe) [ 21/Feb/14 ]

Is this still a concern in the latest Minecraft version 14w08a? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Claude Merle [ 03/Jan/14 ]

I encountered that bug once on 1.7.4.

I encountered that bug with tamed ocelots and tamed wolfs on several occasions (5-6 times) on previous versions of Minecraft (at least since version 1.5.0).

More detailed description:
1/ I have tamed wolves/ocelots.
2/ I right-click on it to make it sit and stay still.
3/ I leave the area (I am not sure whether the distance counts or not, it seems it happens when I am less than a 100 meters far from the wolf location, but I cannot confirm this)
4/ The tamed wolf/ocelots teleports next to me (still sitting), whereas I do not do any specific action that should trigger the teleportation (last time, on 1.7.4, I was fishing, no mob encounter).

------

Maybe the following bug description is relevant, even if the issue seems to be separate. It happened to me 2 times.

I left several tamed horses enclosed by fences in my base (so they were secured from any hostile mobs), I ventured out for a while (maybe the chunk was unloaded). When I returned to my base, I had lost 1 of my horses with no reasons (they could not have died, and I have never witnessed them glitching out from the base (through the walls for instance).

I cannot reproduce that bug on demand.

Comment by Tails [ 31/Dec/13 ]

Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.7 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Orion Humphrey [ 09/Oct/13 ]

All my cats are randomly teleporting to me. Usually when I'm fishing. 39b snapshot.

Comment by Jonah Dewar [ 21/Jul/13 ]

Anytime I enter/exit a Nether Portal, the dogs will get up on their own, and I'm unable to order them to sit unless I restart that world.

Comment by Marios [ 03/May/13 ]

Oh! Thanks.

Comment by Tails [ 03/May/13 ]

@Marios: MC-10109

Comment by Marios [ 03/May/13 ]

In case this bug report is for when tamed sitting wolves/cats momentarily start following the player when the player receives a hit from a mob, then it still occurs in 1.5.2

Comment by Marios [ 15/Dec/12 ]

Very annoying. It happens every time they are around the player and player receives hit from a mob. Voted. Maybe you should give a better title and description.

Generated at Sun Jan 12 11:51:55 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.