Particle Use for Combat (SOLVED)

Started by DeathD84 on

Topic category: Help with modding (Java Edition)

Last seen on 06:35, 13. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Particle Use for Combat (SOLVED)
Sun, 04/23/2023 - 22:28 (edited)

So I'm attempting to use particles for an added affect with combat. 
Beams, areas attacks, and circle attacks are pretty straightforward and I know how to do them
 

The real issue is creating sweeping, or other unique-shaped attacks (like a cross, star, etc.) does anyone have knowledge on how to make something like this work?


Example of an attack trying to be recreated: (minus animations, just making the attack work in a sweeping action and directional)

I'm confused on how to make the particles place themselves relative to the player's looking positions,  and move where you're looking (like above)

 

I've tried playing around with look vector, raycasting, etc and still struggle, 

and when creating lines sometimes they end up the wrong way or behind the player when facing certain directions, help!

Edited by DeathD84 on Sun, 04/23/2023 - 22:28
Last seen on 06:35, 13. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
.
Sun, 11/20/2022 - 00:36

.

Last seen on 06:35, 13. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nvm, learned how to do it on…
Sun, 11/20/2022 - 20:26

Nvm, learned how to do it on my own with a few hours of research :P

If anyone is wondering the same issue, do some research about the particle command and functions

Then just create a function in MCreator with your particle function in it, and call it in a procedure :)

Last seen on 06:35, 13. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, and for making particles…
Sun, 11/20/2022 - 20:31

Oh, and for making particles spawn correctly, you can use the ^ symbol instead of the ~ symbol to make it spawn relative to the player and not to the world.

Genuinely didn't know this LOL

Last seen on 18:23, 9. Apr 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ahh can you share it i was…
Sat, 07/08/2023 - 16:06

ahh can you share it i was trying to do this for alot of time

Last seen on 20:24, 27. Mar 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you refer me to a…
Fri, 01/12/2024 - 02:58

Could you refer me to a website for the particle functions?