-
Bug
-
Resolution: Awaiting Response
-
None
-
Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 1.7.10, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.4, Minecraft 1.8.8, Minecraft 1.10, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w09a, Minecraft 18w14b, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 1.14 Pre-Release 5, Minecraft 1.14
-
Confirmed
-
Mob behaviour
The bug
Sitting child pets can teleport to their owner when they grow up but immediately appear sitting again afterwards.
How to reproduce
- Spawn one wolf and tame it
- Hold right click on the wolf while holding a wolf spawn egg to spawn baby wolves
- Make all wolves sit
/entitydata @e[type=wolf] {Sitting:1b}
- Move away from the wolves
- Change their age so they will grow up rather fast
/entitydata @e[type=wolf] {Age:-100}
→ Some wolves teleported to you
Code analysis
Based on 1.12 decompiled using MCP 9.40 PRE 1
It looks like the method net.minecraft.entity.Entity.setSize(float, float) is indirectly causing this since it is calling the method net.minecraft.entity.Entity.moveEntity(MoverType, double, double, double) without a downwards motion. This causes the onGround field to be set to false which then causes the EntityAISit task to be reset.
Calling that method with the default gravity downwards motion (if the entity has gravity enabled) might result in unexpected behavior. Instead the onGround value could be restored or only motion values could be set, but this could result in different behavior as well.
- is duplicated by
-
MC-31166 puppy dogs teleport to player when grown up
- Resolved
-
MC-36007 Wolf/Dog Teleports to owner when it Grows up/ages
- Resolved
-
MC-56383 Bug with pets that have been bred
- Resolved
-
MC-61504 Dogs teleporting
- Resolved
-
MC-61979 Sitting dogs teleport upon aging
- Resolved
-
MC-64301 Baby wolf seated, teleports to player when grown
- Resolved
-
MC-76175 sitting kittens teleport at moment they mature
- Resolved
-
MC-80345 sitting puppies teleport when grown
- Resolved
-
MC-101353 Puppies that are commanded to sit,Spawn to the area of the player when the pups grow to adults.
- Resolved
-
MC-103322 Sitting baby dogs teleport to owner when they grow to adults
- Resolved
-
MC-105125 Baby wolf teleports away when it reaches adulthood
- Resolved
-
MC-115932 Sitting baby wolf/ocelot teleports to player
- Resolved
-
MC-118564 Baby Tamed Wolves Teleport to Owner on Growing Up
- Resolved
-
MC-119552 Cat who gets up alone
- Resolved
-
MC-119664 Baby Wolves Teleport to Player Once Mature
- Resolved
-
MC-120639 Baby cats teleport to player when growing
- Resolved
-
MC-130697 Dogs teleport when they grow up
- Resolved
-
MC-136710 Dogs Teleport to Owner when They become Adults
- Resolved
-
MC-136979 Wolf Sitting Glitch
- Resolved
-
MC-148755 Baby Wolf Teleportation Glitch
- Resolved
-
MC-148931 Baby wolfs teleport upon growing up when sitting
- Resolved
-
MC-149879 Wolves can teleport to the player while sitting.
- Resolved
-
MC-150471 Sitting baby wolves teleport to the player when they grow up
- Resolved
-
MC-150911 Dogs and cats teleport to you randomly
- Resolved
-
MC-152013 Puppies TP
- Resolved
- relates to
-
MC-696 Pets disobeying sit commands by helping player when attacked and within a certain radius
- Resolved
-
MC-113 Wolves will teleport to player when player goes far enough from where the wolves are and their chunk unloads
- Resolved