Mob Spawn Eggs

Discussion in 'Bukkit Help' started by TheNoobiestCrafters, Sep 22, 2012.

Thread Status:
Not open for further replies.
  1. I am trying to create a shapeless crafting recipe in which you put in a mob drop and an egg, and you get that mob's spawn egg. For example, I am trying to create a recipe for the creeper. Everything works, I can switch the output to anything and it works. But I just don't know the ID I need to put in for the output to get a creeper spawn egg. Here is my code:

    ShapelessRecipe creeper = new ShapelessRecipe(new ItemStack(Material.MONSTER_EGG)).addIngredient(Material.EGG).addIngredient(Material.SULPHUR);
     
  2. Offline

    JWhy

    Code:java
    1. ShapelessRecipe creeper = new ShapelessRecipe(new ItemStack(Material.MONSTER_EGG, 1, (short) 50)).addIngredient(Material.EGG).addIngredient(Material.SULPHUR);

    Added the damage value 50 to the ItemStack constructor
     
    killoughby3 likes this.
  3. Offline

    killoughby3

    omg thx soooo much
     
Thread Status:
Not open for further replies.

Share This Page