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 29 eggs available in Console Edition, 29 in the computer edition (42 in 1.11), and 34 in Pocket Edition (37 in 1.0)

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 a surface with the egg. 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 is used on a passive mob which has a baby counterpart, it will spawn as a baby.

Spawn eggs can be renamed from an anvil 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.

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, and will be the default color (white with grey spots).

Spawn eggs can also be made for wither skeletons, since they are just variations of skeletons with special entity tags. The command would be:

The same applies to elder guardians:.

From 1.11, the command should be. The minecraft: should be added properly.

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.

Not just mobs, but most other entities can be spawned with spawn eggs. Exceptions include constructed mobs, such as snow golem (21), iron golem (20) and wither (52). The lightning egg (93) can be used, but the lightning will not actually be spawned where the egg was used until the player logs out, then in again. Others will not spawn at all: player (63), item (64), falling block (66), fishing hook (77), painting (83) or thrown ender pearl (87).

If a data value is used that does not correspond to an egg in the list above, the egg will be the default color (white with grey spots), and with the exception of the constructed mob eggs, will be simply named "Spawn".

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.