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

Started by Ali107 on Sat, 08/29/2020 - 12:04

Topic category: Help with MCreator software

Last seen on 10:32, 20. Oct 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make mob when firing ranged weapon to shoot less frequently?
Sat, 08/29/2020 - 12:04

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 17:52, 16. Oct 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 10:32, 20. Oct 2020
Joined Jul 2020
User points:

User statistics:

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

can rephrase this, I didn't understand.