How to reduce a mob's shot speed?

Started by Chorus on

Topic category: Help with modding (Java Edition)

Last seen on 17:06, 21. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to reduce a mob's shot speed?

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.

Last seen on 11:18, 15. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can add a 'delay' to the…
Wed, 11/08/2023 - 20:09

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.

Last seen on 17:06, 21. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok thanks. However, when it…
Thu, 11/09/2023 - 18:46

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.