Spawning Firework particles by themselves

Discussion in 'Plugin Development' started by Cryptite, Dec 31, 2012.

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

    Cryptite

    I can spawn fireworks at the player's location just fine with:
    Code:
    Firework fw = player.getWorld().spawn(player.getLocation(), Firework.class);
    FireworkMeta fwm = fw.getFireworkMeta();
               
    FireworkEffect effect = FireworkEffect.builder().withColor(Color.GREEN).with(Type.BALL).build();
           
    fwm.addEffects(effect);
    fwm.setPower(0);       
    fw.setFireworkMeta(fwm);
    But I was wondering if there was a way to spawn just the BALL particles etc by themselves, preferably without the firework shooting sound. Is this exposed by itself somewhere or is it all just tied together? Thanks in advance, internet!
     
  2. Offline

    fireblast709

  3. Offline

    Cryptite

    Oh dear that's so over my head.
     
  4. Offline

    fireblast709

    Code:java
    1. ((CraftWorld)world).getHandle().broadcastEntityEffect(
    2. ((CraftFirework)your Firework entity).getHandle(),
    3. (byte)17);
    Fill in the blanks, get the correct imports
     
  5. Offline

    NerdsWBNerds

    http://forums.bukkit.org/threads/in...ible-rocket-just-the-explosion-effect.269919/
     
Thread Status:
Not open for further replies.

Share This Page