Talk:Ender Dragon/Archive 2

No AI tag?
So, will the /NoAI tag work on the Ender Dragon? Brickticks (talk) 18:06, 18 March 2015 (UTC)


 * Yes, it will work fine. The only issue with it is the ender dragon cannot be damaged directly when using NoAI. – KnightMiner  t/c 03:07, 27 March 2015 (UTC)

Targeting 0,0? Doesn't seem like it.
Looking at the class in 1.8, I don't see any evidence that the dragon actually targets 0,0 or specifically orbits 0,0. The "select new target" function will do one of two things: But when the dragon next updates, if the target is closer than 10 blocks or farther than 150 blocks then it'll choose a new target. So it might target a far-away player and then immediately retarget making it look like it ignores players over 150 blocks away, and the choosing of random target points within ±60 of 0,0 might seem like orbiting.
 * If there are any non-spectator players in the End, regardless of distance, 50% chance of targeting one at random.
 * Otherwise choose random points in X=±60, Y=70–120, Z=±60 until it picks one that's at least 10 blocks away from the dragon's current position.

It also chooses a new target if the last movement attempt was adjusted because of colliding bounding boxes of some sort, but the "core" piece seems to have noclip set so that will never actually happen (but turning off noclip might have resulted in this because of this collision check). There's also a specific variable to force setting a new target, but I don't see it being set from anywhere.

And if it's damaged, it targets a point about 5 blocks behind it (±1 in X and Z from exactly 5 blocks behind) and slightly above (+1–4 in Y), which would cause the "turn and retarget when hit" behavior. Anomie x (talk) 01:20, 10 May 2015 (UTC)


 * Since the video was released almost a year ago, my memory on it was a bit fuzzy, and so the trivia piece sounded accurate. Watching it again states "a random location around 0,0, and further defines it to be a 120×50×120 box centered at 0,95,0, or like you said. Feel free to correct it. – KnightMiner  t/c 01:49, 10 May 2015 (UTC)