Started by
WaSD4
on
Topic category: Help with Minecraft modding (Java Edition)
I have a projectile in my mod, and its completely translucent, and relying on particels to do the visual part. Now, when I simply use a "on tick spawn particle" type procedure, it kinda looks bad, because it moves a lot between ticks so it looks all unconcentrated and weird. How can I solve this issue? I'm thinking predicting where the projectile will be in the next tick and interpolating between the current and the future position, but honestly I have no idea how to do that in procedures (or java).
Thanks in advance!
Advice: Never use the default block, it sucks and isn't versatile. I recommend using this command instead:
particle mod_registry:particle_registry posx posy posz deltax deltay deltaz speed amount view_type
Example:
particle minecraft:cloud ~ ~ ~ 0.25 0.25 0.25 0 50 force
This will generate smoke particles in a small cube shaped area and make all players view them ignoring distance or settings, which sounds like what you're trying to do.
For your specific projectile, my solution would be to use the projectiles speed and delta values to calculate the next position.
Once you've got it, in your procedure create 3 local variables for your temporal positions, x y z.
Set the repeat loop to the difference in positions, and make the variables change in the difference/density.
In each loop, use the command I sent to generate particles at the current point of the procedure.
Hope that helps.
Thanks for the help. But how do I hook up the variables to the command?