Spawn Egg

A spawn egg is an item used to spawn mobs directly.

Obtaining
Spawn eggs are not obtainable in Survival mode. In Creative mode, the player can press on an existing mob to obtain their respective egg. Spawn eggs are also available in the Creative inventory. There are 30 eggs available in Console Edition, 42 in the computer edition, and 37 in Pocket Edition.

Commands
Spawn eggs can be obtained by ops using. See this section for all available spawn eggs and commands.

Any spawn eggs not listed in the table below cannot spawn entities. They will instead make a sound as though an arrow has been shot. These eggs will be the default color, white with gray spots. When a player hovers over the image with their mouse the name of the egg is "Spawn ". This egg has no specific properties and can not spawn any mob, except for PE in which some "hidden" spawn eggs obtained from commands that spawn other entities like Primed TNT and Wither Skulls.

Usage
A spawn egg is used by pressing on any surface (top, bottom or side) with the egg. When used on a top surface, the egg's mob will appear with its feet immediately adjacent to the surface. The egg will be consumed in the process in Survival mode, but will not be consumed in Creative mode.

Spawn eggs are not thrown (unlike normal eggs); the player must be within normal range of the block. Hostile and neutral mobs (except wolves) spawned while on Peaceful difficulty will spawn but will be instantly deleted from the world.

A spawn egg fired from a dispenser will spawn the mob directly in front of the dispenser.

If a spawn egg for a passive mob that has a baby form is on an existing one of that same mob, it will spawn a new baby version of that mob, rather than an adult.

Spawn eggs can be renamed on an anvil, and when used will spawn mobs with that name attached to them as an NBT tag. Their names can only be seen if they are aimed at from four or fewer blocks away. This name will also appear in death messages from the mob killing a player. Any spawn egg can be on a spawner to change the mob that it spawns.

Computer edition
The data value of a spawn egg has no effect; instead, the  data tag is being used. For example, would cause the spawn egg to create creepers. The  prefix is required.

If, for the entity tag 'id', a SaveGame ID is used for a mob that is not listed in the table above, such as  (iron golem), the result would be a spawn egg with the name "Spawn Iron Golem", since the game can figure out the display name, but the egg will not spawn any mob (but can be used on a mob spawner), and will be the default color (white with grey spots).

Pocket Edition
When using the command to give a spawn egg, it requires the numeric ID of an entity; for example:  would give an egg that spawns a creeper. For reference, see Pocket Edition data values for a complete list of entity IDs.

Eggs can be given not just for mobs listed in the table above, but for a few other entities. These eggs will be uncolored (white with grey spots), and will be called by unlocalized placeholder names, or simply, "Spawn".
 * The snow golem (21), iron golem (20) and item (64) spawn eggs can be given, but will spawn nothing.
 * The ender crystal spawn egg (71) produces an end crystal.
 * Using any other entity ID will fail to give the egg.

Trivia

 * Data values differ between platforms. However, the ID is the same.
 * Iron golem, snow golem, and zombie villager spawn eggs can be obtained by switching data values.
 * "Player" spawn eggs can be generated, but are useless. This is because they can not be spawned, even with the summon command.