Teleporting Ender Dragons with NoAI set to true won't update visual position
The bug
Ender dragons visual position doesn't update when NoAI is set to true. Ender dragons will visually update their position when NoAI is set to false. Other mobs work fine.
How to reproduce
/summon ender_dragon ~ ~ ~ {NoAI:true}/teleport @e[type=ender_dragon] ~ ~10 ~
Note
The position of the Ender dragon is changed when teleporting, as logging out updates the visual and the sound can be heard immediately at the new coordinates.
This works will all other tested mobs. And does work if the Ender dragon doesn't have the NoAI tag.
Linked Issues
testing discovered1
is duplicated by2
Created Issue:
Can't tp an Ender Dragon with NoAI-Tag
I've tried to tp an Ender Dragon with NoAI Tag on it but unfortunately it doesn't work, although it works for cows for example.
Commands:
/summon EnderDragon ~ ~ ~
{NoAI:1}/tp @e[type=EnderDragon] ~ ~ ~-1
But it does work for cows...
{NoAI:1}
/summon Cow ~ ~ ~/tp @e[type=Cow] ~ ~ ~-1
...and for Ender Dragons WITH AI:
/summon EnderDragon ~ ~ ~
/tp @e[type=EnderDragon] ~ ~20 ~
is duplicated by
testing discovered
is duplicated by
Ticket resolved as incomplete, because no answer in a reasonable amount of time (1+ year), if it still happens, please update the ticket.
A comment with security level 'global-moderators' was removed.
I've tried to tp anEnder Dragon with NoAI Tag on it but unfortunately it doesn't work, although it works for cowsforexample.Commands:
/summon EnderDragon ~ ~ ~
{NoAI:1}
/tp @e[type=EnderDragon] ~ ~ ~-1But it does work for cows...
{NoAI:1}
/summon Cow ~ ~ ~
/tp @e[type=Cow] ~ ~ ~-1...and for Ender Dragons WITH AI:
/summon EnderDragon ~ ~ ~/tp @e[type=EnderDragon] ~ ~20 ~Ender Dragons visual position doesn't update when NoAI is set to true. Ender Dragons will visually update their position when NoAI is set to false. Other mobs work fine.
Step 1:
/summon ender_dragon ~ ~ ~ {NoAI:true}Step 2
/teleport @e[type=ender_dragon] ~ ~10 ~Note:
The position of the Ender Dragon is changed when teleporting, as logging out updates the visual and the sound can be heard immediately at the new coordinates.This works will all other tested mobs. And does work if the Ender Dragon does not have the NoAI tag.
Can't tp anEnder Dragon with NoAI-TagTeleporting Ender Dragons with NoAI set to true, won't update visual postion
Teleporting Ender Dragons with NoAI set to true, won't update visual position
Ender Dragons visual position doesn't update when NoAI is set to true. Ender Dragons will visually update their position when NoAI is set to false. Other mobs work fine.
Step 1:/summon ender_dragon ~ ~ ~ {NoAI:true}Step 2
/teleport @e[type=ender_dragon] ~ ~10 ~Note:
The position of the Ender Dragon is changed when teleporting, as logging out updates the visual and the sound can be heard immediately at the new coordinates.This works will all other tested mobs. And does work if the Ender Dragon does not have the NoAI tag.
The bug
Ender dragons visual position doesn't update when NoAI is set to true. Ender dragons will visually update their position when NoAI is set to false. Other mobs work fine.
How to reproduce
/summon ender_dragon ~ ~ ~ {NoAI:true} /teleport @e[type=ender_dragon] ~ ~10 ~Note
The position of the Ender dragon is changed when teleporting, as logging out updates the visual and the sound can be heard immediately at the new coordinates.
This works will all other tested mobs. And does work if the Ender dragon doesn't have the NoAI tag.
relates to
Can confirm in 20w51a.

Confirmed. /Testfor still detects it at the correct position, and the Ender dragon appears at the correct location after logging out/back in.
Probably yet another side effect of dragons being a 'complex entity', meaning they are made up of multiple entity parts, which are usually synchronized. If one moves, they should all move the same kind of way. It seems, however, the entity part that the tp command picks, does move the dragon, it just doesn't visually update its position.
Is this still an issue in the current Minecraft Snapshot 15w49b 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.
Still confirmed for 1.12.1
Reopened and gave the ticket to qmagnet.
Confirmed for 18w03b.
Confirmed for 18w49a.
Confirmed for 1.14.2
Confirmed in 1.15.2 and 1.16 Pre-release 2. Related to MC-44654.
Can confirm in 20w46a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a.
Can confirm in 1.16.5 and 21w08b.
Can confirm in 1.17-pre4.
Can confirm in 1.17.1.
Can confirm in 1.18.2 and 22w18a.
Can confirm in 1.19.
Can confirm in 1.19.2.