1.15.2 How can i create a fire effect where the player face

Discussion in 'Spigot Plugin Development' started by k2210000, Feb 8, 2020.

  1. I use p.getLocation() try to make a sector effect like this, but still fail
    When I trun , the effect is produced where I face.
    Is there any way I can do what I want to do ?
  2. umm add 1.5 to your y value, players are 1.5 tall
  3. I hope his center will be still in front of player's eyes
  4. p.getLocation() will only return where the player is standing. As stated earlier, you should add 1.5 to the y, so the effect will be at eye level. After that, you'll need to add to the x/z to make it display in front of the player. You will have to get the vector of where the player is facing and add it to the location for spawning.