Started by
Swiizy4K
on
Topic category: Help with 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