spawn particle Infront of player

Started by quintoniusvlint on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2022
Points:
505

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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

Active 2 years ago
Joined Mar 2021
Points:
691

User statistics:

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

ray cast x, y, z all at 1

Active 4 months ago
Joined Dec 2016
Points:
778

User statistics:

  • Modifications: 2
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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

Active 5 months ago
Joined Nov 2023
Points:
165

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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

Active 1 year ago
Joined Jun 2023
Points:
236

User statistics:

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

I also wanna know what the distance block is lmao

Active 1 year ago
Joined Mar 2024
Points:
105

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 4 months ago
Joined Apr 2023
Points:
300

User statistics:

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

I agree

Active 1 year ago
Joined Mar 2024
Points:
114

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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)

Active 6 days ago
Joined Sep 2023
Points:
487

User statistics:

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

Use New Procedures Plus+ plugin