Each item in Minecraft has a unique ID assigned to it, known as an item ID, this can be used in commands to spawn the item into the game. The item ID for dragon egg in Minecraft is shown below:
Items from earlier versions of Minecraft were assigned a numerical ID — a unique number to represent it.
The numerical ID for Dragon Egg is:
The Dragon Egg item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.
The dragon egg in Minecraft can be found in the end. It is dropped when the ender dragon is defeated and cannot be mined if there are free air blocks around it for it to move to.