Particle above players head?

Discussion in 'Spigot Plugin Development' started by PurrfectMistake_, Jun 17, 2016.

  1. Currently using this method:

    Code (Text):
                Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable()
                    {
                        public void run()
                        {

                            player.getWorld().playEffect(player.getLocation(), Effect.MOBSPAWNER_FLAMES, 0);
                            player.getWorld().playEffect(player.getEyeLocation(), Effect.HAPPY_VILLAGER, 0);
     

    I'd like the Happy_Villager effect to be 1 block above the players head. whats the method for this?
     
  2. World has a spawnParticle method. Just use that. Also, just make the location the players location, with 1 added to the Y value
     
  3. So.. how exactly would i go about doing that? just starting to play around with particles & their positions.
     
    • Funny Funny x 1
  4. Depends what kind of shape you want them to be in.