Create a firework spawner from a firework ItemStack

Discussion in 'Spigot Plugin Development' started by iAmGio, May 19, 2016.

  1. Hi!

    I have a problem: I have to create a firework spawner from a custom firework ItemStack.
    Can you help me?
  2. What is a firework spawner?
  3. [​IMG]
  4. I need to get the EntityType from the ItemStack.
  5. You might have to use some NBT manipulations to get this done (I have just released an NBT library that I will now shamelessly plug, check my signature :p).

    If you use the BlockState io delegate from the api you can set the NBT data on a spawner after you place it in the world. The tags that you will need to set are described here If you have any trouble working with the API please let me know. I am still trying to get some people using it to see how others find using it :)
  6. Thanks, but I prefer not use external APIs :)