Spawn Egg



A Spawn Egg is an item that may be used to spawn mobs directly. It is available to regular players in Creative Mode and to server operators in both Creative and Survival Mode. It allows the player to spawn a variety of mobs on command, although some mobs are not available for certain reasons.There are 23 eggs available in total without mods or hacking.

Use
A spawn egg is used by the use command (normally right-clicking) on a surface with the egg. The egg's mob will appear with its feet immediately adjacent to the surface. Unlike chicken eggs and Ender pearls, 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 setting will spawn but instantly deleted from the world, just like mobs from monster spawners. The player may also place them in dispensers, which will spawn the mob directly in front of the dispenser itself. This would be useful for adventure maps and traps. In Creative Mode, the player can use "pick block" on a mob to obtain their respective egg, provided one already exists.

Spawn eggs renamed by anvils will spawn animals with that name attached to them as an NBT tag. This name will also appear in death messages.

Ability to spawn
Notes:
 * All mobs with baby counterparts will spawn as adults unless the spawn egg is used on its corresponding mob (adult or baby) which will cause its baby counterpart to spawn instead.
 * Any entity not in the list above, such as paintings, entity blocks, or primed TNT, cannot be created with spawn eggs, even if set to the relevant Entity ID value by SMP commands or hacking. The hacked egg is colored gray (Spawn Null.png) and doesn't work.

Renaming
If you rename a spawn egg in an anvil then spawn that mob that entity will have the name you renamed the spawn egg. This gives the ability to rename Wolves and Ocelots in creative mode. But since certain mobs cannot be spawned using a spawn egg, the following cannot be renamed on a anvil:


 * utility mobs
 * Iron Golem
 * Snow Golem
 * Wither
 * Ender Dragon

Getting eggs using commands


Spawn eggs can be obtained by ops using the command. When using this method, the damage value of the egg spawned pertains to the Entity ID of the entity it makes (see table above). However, any spawn eggs not listed in the above table cannot spawn entities. (It will just 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.

The format for the command is:

Example: would give a player a single villager spawn egg.

Bugs

 * Using a spawn egg on top of a fence will cause the spawned mob to fall through it, as they are not placed on top of the collision area but the actual fence.
 * Spawn eggs ignore the requirement of sufficient space to spawn a mob. This is most notable with Ghast, where the player can use a spawn egg to spawn them in a 1 block space, trapping them within. However, the Ghast may suddenly rise up.
 * The player can hear the standard sound of all the mobs when spawned, even hostile ones on peaceful (as they exist briefly before despawning).
 * The spawn egg for Pigs appears lighter as a dropped item.
 * When you spawn a pig on a cactus it will not be able to move.
 * When a zombie picks up a spawn egg it's texture becomes that of a regular egg.

Trivia

 * Mobs spawned via this item act the same as normally spawned ones. As such, hostile mobs will despawn if the player ventures too far.
 * Although hostile mobs spawned on peaceful difficulty will despawn almost instantly, it is possible for Iron Golems to attack the mob before it is gone. In some cases, they might manage to kill it.
 * In Creative mode, one spawn egg can be used to spawn mobs infinite times; however, in Survival mode, spawn eggs will be used up (e.g. one Spider spawn egg will only spawn one Spider; it will then be used up; a stack will spawn sixty-four).
 * When spawning an Enderman using a spawn egg on peaceful mode, it can exist long enough to pick up a block.
 * If a Zombie picks up a spawn egg, the egg will turn plain white, regardless of type.
 * When using /give or a 3rd party program to spawn in spawn eggs with incorrect data values over 23, the spawn eggs may claim to spawn other entities (such as the Enderdragon). When used, nothing will happen.