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

Started by Ali107 on

Topic category: Help with MCreator software

Active 1 week ago
Joined Jul 2020
Points:
1235

User statistics:

  • Modifications: 5
  • Forum topics: 90
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 233
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?

Active 1 month ago
Joined Jun 2020
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 137
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.

Active 1 week ago
Joined Jul 2020
Points:
1235

User statistics:

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

can rephrase this, I didn't understand.

Active 2 years ago
Joined Aug 2020
Points:
636

User statistics:

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

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