Started by
Chorus
on
Topic category: Help with Minecraft modding (Java Edition)
I created a mob that shoots projectiles from a distance.
He was supposed to shoot fireballs every 5 seconds like Ghast. I managed to make fireballs but instead of 5 seconds the mob fires all the time which is too op.
Please someone help.
You can add a 'delay' to the ranged attack option in Entity AI. The delay is measured in ticks, so for 5 seconds you would want a 100 tick delay.
Ok thanks. However, when it comes to the fireball, something is wrong.
The procedure summons a ball of fire when the arrow hits the player, causing it to sometimes stop in mid-air.
I do not mean it. I want the mob to shoot a fireball at the player which will explode when it hits a block or target.