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...
-
1Is a good idea that would work but the dragons movement may be too limited. Commented Jan 28, 2014 at 9:46
-
3This would be my best bet at doing it, but remember that the ender dragon CAN break command blocks. So make sure your TP circuit is a safe distance away. (but close enough that the same chunk is loaded)– DBSCommented Jan 28, 2014 at 12:10
-
4Can you use a command block to apply the slow effect on a dragon to keep it in place? Commented Jan 28, 2014 at 15:53
-
2That was a very good idea, @IQAndreas, but it seems like the Ender Dragon ignores the Slow effect. Commented Jan 28, 2014 at 17:28
-
1You might be able to use logic gates to trigger the command block to teleport the dragon when it reaches the boundary of it's cage– Memor-XCommented Feb 25, 2014 at 22:53
Any 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.
-
3Seems like your conclusion is wrong. If one option doesn't work, that doesn't mean nothing will. Commented Jan 26, 2014 at 0:54
you could have a command block repeating this command
/tp @e[type=EnderDragon,X,Y,Z,mr=minrange] x y z
The 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