Hi! I'm trying to figure out how to make a ring of particles around a specific location. Can someone please help me with that, thanks! <3
Here is the code I have so far, math I believe is right but it simply isn't working.
https://hastebin.com/etizajuhoj.cpp
The spawnParticleGlow code is as followed.
public static void spawnParticleGlow(World world, float x, float y, float z, float vx, float vy, float vz, float r,
float g, float b, float a, float scale, int lifetime) {
if (MysticalLib.proxy instanceof ClientProxy) {
counter += random.nextInt(3);
if (counter % (Minecraft.getMinecraft().gameSettings.particleSetting == 0 ? 1
: 2 * Minecraft.getMinecraft().gameSettings.particleSetting) == 0) {
ClientProxy.particleRenderer.spawnParticle(world, LibRegistry.PARTICLE_GLOW, x, y, z, vx, vy, vz,
lifetime, r, g, b, a, scale);
}
}
}
Thanks! :)