Projectile item type mechanic spawning a massive amount of items after hitting a target
I tried to make a projectile that repeats himself 5 times with an interval of 1 tick, after hitting a Pillager with it, it started spawning a massive amount of pink wool items, (my projectile was a pink wool item type) and basically crashed my server because of the ridiculous amount of entities.
Also an error appeared in my log, here's the pastebin: https://pastebin.com/9yYKax4Y
And if you wanna check my skill, it's fine but anyways here it is too: https://pastebin.com/wWG9YRTn