Mob Spawners-ItemStack form.

Discussion in 'Plugin Development' started by Warreo, Jul 5, 2013.

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

    Warreo

    Alright, so I haven't found a post like this so I've been wondering how you would go about creating an ItemStack of mob spawners with a specific entity in it. I've attempted to do it with data (new ItemStack(ID, Amount, (short) data)) but unfortunetly this does not give me what I'm looking for. Now I know how to create a block turn into a mob spawner that I want. But does anyone have any idea about how to do this with just an ItemStack, so giving a player a mob spawner that for example is a Zombie Spawner?

    Any help is always appreciated! :)

    P.S. I do have a method around this to make it still work. But I'm curious if you can actually create a working itemStack.
     
  2. Offline

    MUG806

    you could add lore to the item stack which says what kind of spawner it is, and then when it is placed, set the type of mob based on the lore of the itemstack used.
     
    Compressions likes this.
  3. Offline

    Warreo


    That's what I have been doing, I was curious that with the complexity of a mob spawner if you somehow could create the actual item.
     
Thread Status:
Not open for further replies.

Share This Page