Make ranged atack with effects (Like warden sound atack)

Started by gamer_sans987 on

Topic category: Help with modding (Java Edition)

Last seen on 07:17, 30. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make ranged atack with effects (Like warden sound atack)

I was making a mod for my first time and have an idea to make a special ranged atack for a boss i was making, but i really don't know how i can make this.

The base of the idea is from a meme of a youtuber called Dani, he say this "Oh, you don't know what karlson is? Is just *earrape sounds*" and when go to the part is just earrape it make the special atack.

If some knows a way to do this, i will so thankfull.

(i added an animation later and by the way, the model of the boss is Biped)

Last seen on 12:31, 22. Jan 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
idk how the sonic boom works…
Mon, 06/13/2022 - 16:52

idk how the sonic boom works exactly but it should go something like this

i will give some variables names here so it will be easier to interpret

density = how many particles you wanna spawn

index = what particle you are currently spawning

spawn a particle at [ ( (x position of boss - x position of target) / density) x index ], [ ( (boss Y - target Y) / density) x index], [ ( (boss Z - target Z) / density) x index ]

repeat that [density] times

then damage the target however much you want to damage it

this will make it so the farther you are from the boss, the wider the space between each particle, which kind of makes it look stretched

Last seen on 07:17, 30. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Something like this?
Wed, 06/15/2022 - 00:31

Something like this?The Code of the spacial atack

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually this is more clever…
Wed, 06/15/2022 - 01:19

actually this is more clever than the actual system that the warden sonic boom uses the warden sonic boom attack has a threshold of 20 blocks so the distance calculation (x or z or y - x or z or y of target entity) doesn't exist it always goes 20 blocks at least the particles do.. And also use a custom damage of "was killed by a sonically charged shriek" in the text or whatever death messege you want