How do I make mob when firing ranged weapon to shoot less frequently?

Started by Ali107 on

Topic category: Help with MCreator software

Last seen on 23:20, 19. Apr 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make mob when firing ranged weapon to shoot less frequently?

I give my mob a ranged weapon to shoot from, it shoots every second or so. How do I make it shoot less frequently like shoot every 3 seconds?

Last seen on 18:54, 23. Aug 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use conditions in your…
Sun, 08/30/2020 - 05:59

Use conditions in your attack procedure to only allow it to attack every 60 ticks, using a procedure to track a timer (on entity tick update), and set a variable between true and false as a condition to trigger when and when it can't shoot. Every 60 ticks, set the condition to true for 5 ticks, then false for the next 55 ticks or so. Repeating that procedure constantly.

Last seen on 23:20, 19. Apr 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can rephrase this, I didn't…
Sun, 08/30/2020 - 11:57

can rephrase this, I didn't understand.

Last seen on 10:47, 24. Oct 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use entity tick update to…
Fri, 07/16/2021 - 12:05

Use entity tick update to activate/desactivate firing capacity every 60 ticks