Making a sweep attack-like effect [HELP]

Started by Swiizy4K on

Topic category: Help with modding (Java Edition)

Last seen on 18:17, 3. Jul 2023
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:08, 19. Nov 2022
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 18:17, 3. Jul 2023
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 03:52, 28. Jul 2023
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 18:17, 3. Jul 2023
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