Making a sweep attack-like effect [HELP]

Started by Swiizy4K on

Topic category: Help with modding (Java Edition)

Last seen on 19:03, 13. Jul 2024
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a sweep attack-like effect [HELP]

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

Last seen on 00:58, 17. Jul 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Since you are using a custom…
Tue, 10/11/2022 - 14:42

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.

Last seen on 19:03, 13. Jul 2024
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you I think this will…
Tue, 10/11/2022 - 17:46

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 :

Last seen on 06:49, 17. Jul 2024
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the other spawn particle…
Tue, 10/11/2022 - 18:23

Use the other spawn particle block

Last seen on 19:03, 13. Jul 2024
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you VuFlub, you are a…
Tue, 10/11/2022 - 20:22

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

Last seen on 05:55, 17. Jul 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello so I made my own sweep…
Wed, 06/19/2024 - 18:52

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?

Last seen on 17:02, 16. Jul 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well it going underground…
Tue, 06/25/2024 - 19:55

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.