-
Bug
-
Resolution: Fixed
-
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
-
Confirmed
-
Survival
-
(Unassigned)
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
- Tame a parrot and make it sit
- 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.
- is duplicated by
-
MC-10109 Cats stand up if player is hit by mob nearby
- Resolved
-
MC-19533 Wolves act oddly
- Resolved
-
MC-26775 Dogs get up on their own
- Resolved
-
MC-28442 Pets Stand When You Take Damage
- Resolved
-
MC-29334 Where ever I go my a lot of my pets teleport to me but thier sitting actually
- Resolved
-
MC-49634 Wolf glitch
- Resolved
-
MC-51222 Sitting puppies teleport when grown.
- Resolved
-
MC-51875 Wolf Moving While Sitting
- Resolved
-
MC-55431 Sitting and "teleporting" tamed adult wolves.
- Resolved
-
MC-75513 Tamed cat and dog glitch
- Resolved
-
MC-78296 Sitting dog moving.
- Resolved
-
MC-104806 Extremely rarely, when you are attacked, even from very faraway, sitting wolves and cats teleport to you
- Resolved
-
MC-105350 Sat cats move when player is hurt.
- Resolved
-
MC-115932 Sitting baby wolf/ocelot teleports to player
- Resolved
-
MC-118546 Sitting parrots fly if you take damage from a nearby hostile mob
- Resolved
-
MC-118958 My parrots teleport even if they are sitting down
- Resolved
-
MC-119024 Request to reopen closed issue with sitting wolves teleporting.
- Resolved
-
MC-119552 Cat who gets up alone
- Resolved
-
MC-126709 Parrots start flying when the player takes damage from a mob, even when sitting.
- Resolved
-
MC-128764 Multiple parrot issues (dismounting while hitting downward, teleporting, etc.)
- Resolved
-
MC-137104 Phantoms Cause any pet that is sitting to jump up and teleport to the player.
- Resolved
-
MC-149066 Cats and Parrots teleporting with Phantoms nearby
- Resolved
-
MC-151127 Non dogs pets following the player when is attacked
- Resolved
-
MC-2470 Tamed wolf, directed to sit, follows despite sitting
- Resolved
-
MC-3197 Wolves/Dogs teleporting when sitting
- Resolved
-
MC-3644 Wolves walking sit
- Resolved
-
MC-4166 Problems with tamed dogs
- Resolved
-
MC-4760 Tamed wolves glitch.
- Resolved
- relates to
-
MC-153188 Tamed Wolves/dogs not going after hostile mobs while sitting
- Resolved
-
MC-28440 Sitting child pets teleporting to owner when growing up
- Resolved