Posted June 7, 20205 yr Hey all. Just wondering how I would go about adding a line of particles between two points for a short period of time, if at all possible. Thanks!
June 7, 20205 yr Sure, just spawn the particles along the line between the two points i.e. if your two points are [x1,y1,z1] and [x2,y2,z3], and you want them evenly spaced at 10% intervals, then spawn at [x1*0.9 + x2*0.1, y1*0.9 + y2 * 0.1, z1 * 0.9 + z2 * 0.1] and [x1*0.8 + x2*0.2, y1*0.8 + y2 * 0.2, z1 * 0.8 + z2 * 0.2] etc This tutorial project gives a working example of how to spawn custom particles; there are a few tricks about setting the initial velocity correctly and removing random variation from the initial position. https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe50_particle -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.