6

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.

12

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

the command

the enderdragon

10

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).

Command block contents

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...

Stuck dragon

Of course, you can add a cage around the Dragon as a cosmetic feature...

6
  • 1
    Is a good idea that would work but the dragons movement may be too limited.
    – 09stephenb
    Jan 28 '14 at 9:46
  • 3
    This 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)
    – DBS
    Jan 28 '14 at 12:10
  • 4
    Can you use a command block to apply the slow effect on a dragon to keep it in place?
    – IQAndreas
    Jan 28 '14 at 15:53
  • 2
    That was a very good idea, @IQAndreas, but it seems like the Ender Dragon ignores the Slow effect.
    – BlaXpirit
    Jan 28 '14 at 17:28
  • 1
    You 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-X
    Feb 25 '14 at 22:53
9

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:

Screenshot of a village razed by an Ender Dragon with a Bedrock layer intact

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.

1
  • 3
    Seems like your conclusion is wrong. If one option doesn't work, that doesn't mean nothing will.
    – BlaXpirit
    Jan 26 '14 at 0:54
2

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

0

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.