Started by
Oofeiro
on
Topic category: Help with Minecraft modding (Java Edition)
I wanna make a custom particle that spawns in front of the player when something is done, kinda like the vanilla sword slash. I played a little with the player's coords alongside the direction (yaw) block, trying to achieve something similar to my original idea but the particle didn't spawn. Then i gave up on the direction (yaw) block and used only the player coords, making the particle's spawning position based on the direction the player was looking (North, East, etc.). It did go well but not in the way i wanted, it was spawning in a fixed direction and not exactly where the player was looking.
Is there a way to do that? Spawn a particle exactly in front of the player?
Edited by Oofeiro on Sun, 08/11/2024 - 17:42
you could try using these blocks: https://imgur.com/QXdrhK4
Thanks for answering me, bo_bo, but none of those blocks solved my problem. I made some formulas between those blocks and the player's coords. The particle spawned nearby (not in front of the player) but every time i moved the camera, the particle would stop spawning.
Here's the procedure if you want to see it: https://imgur.com/a/cn1ApgJ (the Y coord doesn't matter as the particle will only follow the player's horizontal direction)
i tried 3 formulas: 1. adding the look pos to the coords; 2. subtracting the look pos by the coords; 3. multiplying the look pos by 0.1 to then adding it again with the coords. Only the first one went "well".
try without any formula, like this: https://imgur.com/acIW00h (remove it for y since you don't need it) that should work better
Do this: https://imgur.com/a/hjhSgjb
Use New Procedures Plus+ plugin
New Procedures+ solved my problem. Thanks for helping me guys