Material for spawn eggs

Discussion in 'Plugin Development' started by Glass_Eater84, Jun 19, 2014.

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

    Glass_Eater84

    What is the material for spawn eggs? Such as a wolf egg. Material.()
    Glass
     
  2. Offline

    Geekxboy

    material is "MONSTER_EGG" with a datavalue of 95 for a wolf egg
     
  3. Offline

    Glass_Eater84

    Geekxboy
    Would I have to do:
    Code:java
    1. temStack stack = new ItemStack(Material.MONSTER_EGG, 1, (short) 95)

    ?
     
  4. Offline

    Geekxboy

  5. Offline

    Hellgast

    ItemStack egg = new SpawnEgg(EntityType.WOLF).toItemStack(amount);
    Would also work, in which it more readable and it's easy to choose an entityType.
     
Thread Status:
Not open for further replies.

Share This Page