Particle Use for Combat (SOLVED)

Started by DeathD84 on

Topic category: Help with Minecraft modding (Java Edition)

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
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 :)

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

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

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?
 

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi ! im trying to make a…
Sun, 06/23/2024 - 02:53

hi ! im trying to make a demon slayer mod and i'd love to know where you found the info for if you still have it, or if you have the info for it from memory that'll be reallyyy helpful aswell !!