As for number 1: I don't think the NoAI tag works for the Enderdragon.
As for number 2: This is probably the best option, however the actual entity that the dragon rides is not important. You could make it a boat, minecart, or even a chicken. I chose an item in my post above, because it's the least visible, ant you don't run into problems with the player destroying it, as you would with ordinary entities. The problem with a minecart is 1) that it can be destroyed by punching, and 2) that it can be "pushed" by a player, with hazardous results if is pushed into blocks.
One way to overcome most of these problems is like this: /summon EnderDragon ~ ~ ~ {Riding:{id:Silverfish,NoAI:1,Invulnerable:1,CustomName:Mount}} and then afterwards use /effect @e[name=Mount] minecraft:invisibility 1000000 0 true. This way, the dragon is riding an invisible, invincible, immovable silverfish (because they have the smallest hitbox). However, this solution isn't perfect, because Creative mode players can still kill mobs with Invulnerable:1, and the invisibility will eventually wear off (not for a while, though).
None of these ways are perfect. For a singleplayer world, just use an invisible entity like the above. If this is going to be on a server though, I would use an item like in my other post just to be safe.
Just get a command block first (commands below) then type the code needed and you will get a non moving EnderDragon in a cage but I know you want a moving EnderDragon but I came up with this, It might be ok though.
COMMANDS:
/give Drave25 minecraft:command_block
Then follow what natratvm just commented, You can see his comment above
All I have are my pet dragons and eggs... I also love Minecraft as I am very addicted... I Drave25 shall help people explore the cube world of Minecraft! And please click on any egg and dragon to help them grow and play Minecraft! I can't be online too much as I have school, sorry guys! And help eachother as you learn!
It can be done with the mob viewer in Craftable Animals, but if it's not Vanilla, it won't work without Bedrock and Obsidian, i think.
Rollback Post to RevisionRollBack
Teddwa (The Fakemon in my avatar) belongs to ReallyDarkAndWindie and that is used with permission from him.
Click on this spoiler to see mods and ideas that I support!
Click on this Spoiler to see misc. banners and whatnot!
I have tried this with the EnderDragon but he just moves around which is annoying, But I did try this with other mobs and it worked! Maybe it's a bug or something???
Rollback Post to RevisionRollBack
All I have are my pet dragons and eggs... I also love Minecraft as I am very addicted... I Drave25 shall help people explore the cube world of Minecraft! And please click on any egg and dragon to help them grow and play Minecraft! I can't be online too much as I have school, sorry guys! And help eachother as you learn!
I think that will just create a regular ender dragon that will fly around and grief your world
My preferred method is pinsMaster's above (although it will flap rapidly and spam flapping sounds unless you use {Silent:1} which prevents its other sounds from playing).
Great Idea: you dont need mob spawners (first) (second) no mods,! so ender dragons wont destroy minecart with chest great i dea make giant cage right next to a minecart with chest he will avoid and blamo he will fly into cage! but you need to be creative and make sure your cage is blast proof with bedrock the put glass spots i hope this helped alot thx.
Actually, just an idea, but you can go inside the cage for the ender dragon and type /summon EnderDragon. It works. And, before that, you should do /gamerule mobGriefing false so it doesnt destroy your world.
Rollback Post to RevisionRollBack
"So...giants who can throw mountains. Friendly wolves that will eat us if we show weakness. Evil espresso drinks. Gotcha. Maybe this isn't the best time to bring up my psycho babysitter."
-Leo Valdez
one (1.8 only): /summon EnderDragon ~ ~1 ~ {NoAI:1}
two:/summon EnderDragon ~ ~1 ~ {Riding:{id:"MinecartRideable"}}
As for number 1: I don't think the NoAI tag works for the Enderdragon.
As for number 2: This is probably the best option, however the actual entity that the dragon rides is not important. You could make it a boat, minecart, or even a chicken. I chose an item in my post above, because it's the least visible, ant you don't run into problems with the player destroying it, as you would with ordinary entities. The problem with a minecart is 1) that it can be destroyed by punching, and 2) that it can be "pushed" by a player, with hazardous results if is pushed into blocks.
One way to overcome most of these problems is like this: /summon EnderDragon ~ ~ ~ {Riding:{id:Silverfish,NoAI:1,Invulnerable:1,CustomName:Mount}} and then afterwards use /effect @e[name=Mount] minecraft:invisibility 1000000 0 true. This way, the dragon is riding an invisible, invincible, immovable silverfish (because they have the smallest hitbox). However, this solution isn't perfect, because Creative mode players can still kill mobs with Invulnerable:1, and the invisibility will eventually wear off (not for a while, though).
None of these ways are perfect. For a singleplayer world, just use an invisible entity like the above. If this is going to be on a server though, I would use an item like in my other post just to be safe.
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2311624-deeper-caves-caves-going-more-than-2-kilometers
", sans-serif">
COMMANDS:
/give Drave25 minecraft:command_block
Then follow what natratvm just commented, You can see his comment above
All I have are my pet dragons and eggs...
I also love Minecraft as I am very addicted...
I Drave25 shall help people explore the cube world of Minecraft!
And please click on any egg and dragon to help them grow and play Minecraft!
I can't be online too much as I have school, sorry guys!
And help eachother as you learn!
Click on this spoiler to see mods and ideas that I support!
2. /summon EnderDragon ~ ~1 ~ {NoAI:1}
3. There
hope this helped!
I have tried this with the EnderDragon but he just moves around which is annoying, But I did try this with other mobs and it worked! Maybe it's a bug or something???
All I have are my pet dragons and eggs...
I also love Minecraft as I am very addicted...
I Drave25 shall help people explore the cube world of Minecraft!
And please click on any egg and dragon to help them grow and play Minecraft!
I can't be online too much as I have school, sorry guys!
And help eachother as you learn!
Life is a game, if you can't win don't play.
-Seto Kaiba
Maybe this will work, I don't know.
Show my dragons some love by clicking on them! :-D
I think that will just create a regular ender dragon that will fly around and grief your world
My preferred method is pinsMaster's above (although it will flap rapidly and spam flapping sounds unless you use {Silent:1} which prevents its other sounds from playing).
Actually, just an idea, but you can go inside the cage for the ender dragon and type /summon EnderDragon. It works. And, before that, you should do /gamerule mobGriefing false so it doesnt destroy your world.
"So...giants who can throw mountains. Friendly wolves that will eat us if we show weakness. Evil espresso drinks. Gotcha. Maybe this isn't the best time to bring up my psycho babysitter."
-Leo Valdez