It is simple. Cover the entire area in torches, then click on the egg. It will teleport somewhere random, and with luck it will land on the torches and become an item for you to pick up. Of course, it might not hurt to cover up the portal just in case it goes wrong.
Chat with our AI personalities
The ender dragon drops it when defeated
kill the ender dragon
There's no spawn egg for enderdragon.
you cant yet the egg is just for decoration right now
That is just a block, you can`t hatch it YET.