Started by
Swiizy4K
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, I simply want to do a custom sweep effect for one of the weapon of my mod and I cant figure out how to do it, I tried with particles but couldn't get it. If someone know how to do it, it would be sooo cool because I searched every page of internet on this subject and there is litterally NOTHING x)
Hope to get an answer soon <3
Since you are using a custom weapon, simply use the "when living entity is hit by tool" trigger and make the game spawn your particle where the player is looking using the look angle vectors in entity data (make sure you replace the target entity with source entity, you can find it in Minecraft components.) This will make it spawn where it needs to.
Thank you I think this will work, but I have a problem : the particle doesn't display, is my procedure good ? I never tried to do things with angle vectors yet, so if something is wrong it would be nice to tell me :D
(works with command block) see here :
Use the other spawn particle block
Thank you VuFlub, you are a saviour because it worked. Thanks to you two it works well, Im putting a screenshot of the procedure for those who wants it ! :D
https://imgur.com/a/NQ6rBKg
Hello so I made my own sweep particle and made the procedure like you did but the particle keeps going under ground and keeps changing positions even though I’m not moving my mouse, is there anything else you did that could help fix this for me?
Well it going underground may be due to the fact you have it just simply at X Y Z. the Y is always your feet. so that's why its probably going into the ground. I would change it to being [X] [Y + 1.3] [Z]. This should be around where the 1st person screen will see it but ofc it might be 1.4 or 1.2 depending on the shape and size of your particle.