spawn particle Infront of player

Started by quintoniusvlint on

Topic category: Help with Minecraft modding (Java Edition)

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

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

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

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

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

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.

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, I know this is old. But…
Thu, 05/16/2024 - 09:41

Yes, I know this is old. But the distance is how far you want it to be from the player (just incase anyone comes here in the future)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use New Procedures Plus+…
Sat, 08/10/2024 - 14:40

Use New Procedures Plus+ plugin