It doesn't do that. ugh, um. ugh, sec. fixed. thanks for that. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I tried the dragon plugin but the dragons seem to get stuck in the ground all the time now so you can easily kill them with out taking damage, Not very good for a boss battle but still very nice
Even if this plugin was successfully made I see a slight problem where people can just make a 1x1 hole in the end and shoot upwards with a bow then the Ender dragon can't hurt the player, Easy Kill. What I will do though is make it so if the plugin is made I'll create a custom End world with a flat bedrock floor so theres no safe places to hide, That will be a great battle Just to warn you, I learned your plugin seems to bring the server down to 5 TPS when about 10 or more people are playing so I had to remove it :/ EDIT by Moderator: merged posts, please use the edit button instead of double posting.
In the EntityDragon class there is a boolean for no clip but it doesn't do anything. and is not used. Ugh this is going to be fun. Since there is no path finding to the dragon. There's just a Double array which seems difficult to modify the Y axis but when messing around with the that "parts" of the dragon would separate and kinda go where ever. I'd say the best way is to rebuild the entire dragon. Considering movement is so closely tied to how the dragon is put together. There is no real easy way to do this. this.ringBuffer[this.ringBufferIndex][1] = this.posY; //0=X,1=Y,2=Z for the "ringBuffer Array" I put a check to see if the location has a block, and to turn him around but for some reason it crashed the server. I'd say use a Noise generator for x,y, and z position and turn him 180 when he gets too close to the ground and maybe define a chunk movement limit so he can't fly off into the sun set. You could also use his head movement for target acquisition. I'll try and work on this. But I'm a little tied up. Alright I've put together a shell for testing and such. If I make any serious head way I'll let you guys know. I'm busy with a little android project so I'll try to get it together and finish it. If anyone wants to help its on github. https://github.com/deathmarine/DragonFix/tree/master/src/com/modcrafting/dragonfix EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Just had a thought, you know when a dragon breaks blocks? the event? Well, what you could do is, when they break a block turn them around, as the event is called INSIDE the block. Although, Deathmarine seems to have this working nicely.
I tried changing boolean X false for noclip and it didn't do anything. Might of been the way I was attempting to override the original class. If it was that easy then we wouldn't have to create a new class. You'd just have to set accessible for x set it to false when a dragon is spawned. The idea was to change the flight path of the dragon. But hey I won't knock it if it works.
Deathmarine after a lot of testing I can say that setting X to false is enough. Have a look at that fork of your code: https://github.com/V10lator/DragonFix/blob/Test1/src/com/modcrafting/dragonfix/DragonFix.java (which is even a candidade for codename_Bs <50 lines challenge now).
http://forums.bukkit.org/threads/ender-dragon-stop-from-destroying-non-ender-blocks.80504/ I found a theard here may work...
ceoepts The code you linked shows how to stop block damage, but we want to stop dragons from moving through the blocks here, like this: http://forums.bukkit.org/threads/co...under-50-challenge.33264/page-13#post-1340600 - This code is based on work from Deathmarine so credit goes to him, too. BTW: Afaik Deathmarine wants to rewrite the pathfinding completely, let's see what we get from that (dragons that are flying around walls, ...)
ceoepts I don't know what's the code you're referring to, but yes, both codes work for their purposes.