Started by
gamer_sans987
on
Topic category: Help with Minecraft modding (Java Edition)
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)
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
Something like this?
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