SpawnEggs

Discussion in 'Plugin Development' started by toxiccoke, Mar 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    toxiccoke

    Hi
    i have been making a pet plugin and i amd making a gui for it.
    does anyone know what the matrial name is for spawn eggs and how i would specify the mob
    thanks toxiccoke
     
  2. Offline

    McKiller5252

    try this:

    Code:java
    1.  
    2. ItemStack stack = new ItemStack(Material.MONSTER_EGG, amount, ID)
    3. player.getInventory().addItem(stack);
    4.  


    you will find the egg IDs here: http://www.minecraftinfo.com/IDList.htm
     
Thread Status:
Not open for further replies.

Share This Page