Increase size of particle effect.

Discussion in 'Spigot Plugin Development' started by Orangemaster123, May 26, 2017.

  1. I am currently using this heart particle effect trail.
    Code (Text):
    player.getWorld().playEffect(player.getLocation(), Effect.HEART, 500);
    Is there a way to increase the size of this particle effect, as the heart particle effect is only low down near the players feet. I want the hearts to be scattered in the air now just at the players feet, just like the mobspawner_flames particle effect.
  2. For that you'd need to use World.spawnParticle, set the offsetX/Y/Z parameters to something non-zero and it will randomize the location.