how do i make particles travel to a set of coordinates?

Started by MFNminerdz on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make particles travel to a set of coordinates?

I'm trying to make a block that can be linked to another of the same block, and I'd like for there to be a trail of particles coming from one block to the one it's linked to, but I'm not sure how to proceed with that. I'm guessing it would have something to do with the velocity numbers (vx, vy, vz), but that would require math that I'm not good at so that's why I'm asking for help.
if anyone could help with this, that'd be appreciated.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The math for this actually…
Fri, 03/27/2026 - 09:50

The math for this actually isn't that complicated. You get the difference between the block's and the target block's positions and set the particle velocity to that. You can also multiply the difference in positions to make it move faster or slower (no multiplication - 1 second travel time, 0.5x - 2 second travel time, 2x - half second travel time, etc.)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem is that i don't…
Sat, 03/28/2026 - 20:44

The problem is that i don't remember how to do math like that. 

I know i can probably do some equation to make the target coordinates interact with the particle velocities in the way i want them to, but i haven't known equations since high school and that's a problem.

Do you think you could provide some examples of what you're talking about? perhaps a screenshot or two?

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't share screenshots at…
Sun, 03/29/2026 - 10:13

I can't share screenshots at the moment as I don't have access to MCreator right now, but I will try to explain it to you. It sounds a lot more complicated than it is. If you're using a newer version of MCreator, you can use the purple "Vector" blocks underneath the "Math" category. You can make a vector with the X, Y, and Z positions of the block and the target position, and then subtract the target from the block position with the purple +-×÷ block. You can create a local variable to store that difference, or you can use it directly in the particle creation block. You can also multiply the particle movement numbers to make it move faster or slower.

I should be able to share screenshots soon, so don't get too stressed about it if you can't figure it out.

Hope this helps! :)

(written on mobile)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i might be missing a plugin…
Mon, 03/30/2026 - 06:47

i might be missing a plugin perhaps. i don't have a vector category.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's under the math category…
Mon, 03/30/2026 - 11:40

It's under the math category on the newest two or three MCreator versions.

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ah, heck. i'm still on 2024…
Mon, 03/30/2026 - 18:02

ah, heck. i'm still on 2024,2 due to plugins not updating.