spawn particle Infront of player

Started by quintoniusvlint on

Topic category: Help with modding (Java Edition)

Last seen on 15:15, 19. Mar 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
spawn particle Infront of player

Hello so I'm trying to make the particle spawn in the direction of where the player is looking, but when I use the X Y Z it doesnt spawn infront of the player.

Image

This is what I tried,

Image

Someone please tell me how to fix this,
you can also  DM me
quintoniusvlint#5657

Last seen on 13:58, 21. Jan 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ray cast x, y, z all at 1
Sat, 05/07/2022 - 12:49

ray cast x, y, z all at 1

Last seen on 22:25, 16. Apr 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
spawn single particle at x:…
Sat, 05/07/2022 - 18:11

spawn single particle at

x: x position of event/target entity + (cos(DEG TO RAD(direction (yaw) in deg. relative to S of event/target entity + 90)) * distance)

y: y position of event/target entity + (sin(DEG TO RAD(head pitch of event/target entity in degrees)) * distance)

z: z position of event/target entity + (sin(DEG TO RAD(direction (yaw) in deg. relative to S of event/target entity + 90)) * distance)

with

vx: 0

vy: 0

vz: 0

type: (your particle here)

LET ME KNOW IF SOMETHING DOESN'T WORK
also i tried to message you on discord but i couldnt send messages

Last seen on 02:11, 2. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
whats the distance block?…
Wed, 03/06/2024 - 11:50

whats the distance block? sorry i cant find it ALSO I KNOW THIS IS NECROPOSTING BUT IM AT A LOSS

Last seen on 04:52, 17. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also wanna know what the…
Sun, 03/31/2024 - 04:22

I also wanna know what the distance block is lmao

Last seen on 01:36, 17. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to send a…
Sun, 03/31/2024 - 05:42

Is there a way to send a photo or a link to a video of the blocks you used to make this work? I tried my best to follow along but it did not end up working.

Last seen on 17:22, 17. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I agree
Sat, 04/13/2024 - 17:34

I agree