Hi guys,
I’m new to SpongeAPI and I’m having some trouble trying to spawn a firework.
I’m able to create the FireworkEffect using the FireworkAPI, but I don’t know how to spawn it.
This is what I have so far:
FireworkEffect.builder().shape(FireworkShapes.STAR).color(Color.CYAN).flicker(false).trail(true).build();
This does spawn the firework however it blows up with no effect right away hence why you may think its not spawning. So apply the effect and you will see it
For the code blocks that I have used above, do 4 spaces before the line of the code starts, but if you already have code to copy and paste then I would do it like the following
Bit of random code
which is done using ` on either end of the code
EDIT: nvm, it is working but the firework is really small. How can I make it longer? Like I want it to go into the sky before exploding, not right on top of my head