Spawn Egg



A spawn egg is an item used to spawn mobs directly. There are 28 eggs available in the Computer Edition (38 in version ), 24 in Pocket Edition (31 in alpha 0.15.0), and 29 in Console Edition.

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.

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.

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; the player must be within normal range of the block. Hostile and neutral mobs (except wolves) spawned while on the 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.

Data values
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:. These eggs will be available by default in.

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.
 * In the pocket edition, the default texture is that of a chicken, not a blank spawn egg.