Problem with monster Egg

Discussion in 'Spigot Plugin Development' started by TiREX, May 13, 2016.

  1. Hi, i have a problem with monster egg.
    Because i use this code:

    Code (Text):
            SpawnEgg egg = new SpawnEgg(EntityType.CREEPER);
            ItemStack is = new ItemStack(Material.MONSTER_EGG);
    And i see item with id 383 and data 0 in my inventory.
    I would like to see item 383 with data 50
  2. Monster eggs no longer have their monster data stored as a data value. It's now stored in NBT tags
    • Like Like x 1
  3. how do I do that?
  4. Prepare for le spitballs.

    I myself haven't had the chance/tools to see about these NBT data tags but I believe they were changed to
    allow types/armor/potion effects on spawn.

    new ItemStack(Material.MONSTER_EGG, 1, (short) 383)

    update: I found an API
    #4 Pr0Pancakeslol, May 14, 2016
    Last edited: May 14, 2016