The Dragon Egg is a rare and unique block that serves as a trophy for defeating the Ender Dragon, the boss creature of the End dimension. It is the only egg in the game that is not used for spawning or crafting purposes. Upon clicking it, the egg teleports to a nearby location, and it can only be collected by using a piston or by breaking the blocks beneath it to let it drop as an item.
The numerical item ID for Dragon Egg is 122
Numerical item IDs will only work in Minecraft versions below 1.13.
The item ID for Dragon Egg is minecraft:dragon_egg
This is the spawn command to give yourself Dragon Egg in Minecraft which includes the Minecraft /give command. If you are using the Essentials plugin you will need to use /minecraft:give instead of /give