How do I keep a summoned EnderDragon in a cage?
Olivia Zamora
I did /Summon in minecraft and I summoned an ender dragon. My friend and I thought it would be cool if we built a cage for the ender dragon. We build a huge cage out of end stone, obsidian and bedrock. We summoned the ender dragon in the cage, and it could fly right out of the cage. mobGriefing was off, and we used blocks that the ender dragon couldn't destroy. Is there any way we can keep him from flying out of a cage? The cage was definitely big enough for at least 3 ender dragons.
5 Answers
With the new summon command 1.7.4, you can summon a enderdragon on a minecart. Then it will still look to you but it can't fly away. You can also give it custom names. :-) Here is the command.... you can make these commands with the new summon program
As FEichinger explained, it's impossible keep an Ender Dragon in place using building blocks.
But you can continuously teleport the Dragon to the same location using a Command Block with the /tp command (since snapshot 14w02a it can work on any entities, not just players).
Use a clock to repeatedly execute the command:
/tp @e[type=EnderDragon] X Y Z
And the Ender Dragon will be stuck in that location, but will shake quite a bit because it will try to move constantly...
Of course, you can add a cage around the Dragon as a cosmetic feature...
6Any block the Ender Dragon cannot destroy, it will pass right through.
This can easily be tested in a superflat world in creative mode. Spawning a dragon and luring it through the Bedrock leads to these results:
As the screenshot shows, the Bedrock layer remains intact desipte the Dragon's attempts - And the dragon flies through it without a problem.
Conclusion: It is not possible to keep an Ender Dragon trapped in one location.
1you could have a command block repeating this command
/tp @e[type=EnderDragon,X,Y,Z,mr=minrange] x y zThe x y z would be the center of the cage, and the minrange = how big the cage is, so when ever the ender dragon went outside of the cage, it would be teleported back to the center
to get to stay in one place in 1.7.2+ do
/summon EnderDragon ~ ~ ~ {Riding:{id:"MinecartRideable",Tame:true}}
and the dragon will stay in one place