Particle Use for Combat

Started by DeathD84 on Sat, 11/19/2022 - 08:51

Topic category: Help with modding (Java Edition)

Last seen on 21:39, 20. Nov 2022
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Particle Use for Combat
Sat, 11/19/2022 - 08:51

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!

Last seen on 21:39, 20. Nov 2022
Joined Jan 2016
Points:

User statistics:

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

.

Last seen on 21:39, 20. Nov 2022
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 21:39, 20. Nov 2022
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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