Started by
MHK
on
Topic category: Help with Minecraft modding (Java Edition)
I made a minigun and it shoots projectiles realy fast so when i shoot at a entity some of them bounces back and if i try to shoot at entity from up it stays at entity head. I think that happens because if you shoot at entity it becomes immune to demage for like 5 ticks but i want to disable that. I tried to modify entity data with commands (i set HurtTime to 0) but it didn't work.
You could make the projectile entity despawn after it hits the target, make sure you don't switch it up and despawn what you shoot or the player shooting or that'll be overpowered or will have some weird results lol.