How to make a mob with 2 attacks?

Started by Chorus on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob with 2 attacks?
Sun, 03/02/2025 - 22:29 (edited)

I'm making a mob boss that will have 2 attacks. One attack will be a regular close attack, and the other will be a projectile fired by it every 15 seconds. However, I don't know how to combine it, I don't know how to make it attack with 2 attacks. I would be grateful if someone could help me

Edited by Chorus on Sun, 03/02/2025 - 22:29
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The same problem.
Tue, 03/04/2025 - 18:57

The same problem.

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So if you make a procedure-…
Thu, 04/17/2025 - 19:41

So if you make a procedure- actually, could you make it into a shareable zip and then send me the link through google drive.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i havent worked with…
Thu, 04/17/2025 - 20:18

i havent worked with entities and know nothing about ai tasks, but from what i can tell, timing anything related to entities, can be done with custom potion effects. you could make a potion effect "rangedattackcooldownorwhatever", and apply it to the entity, if it aggros on another entity and doesnt already have that effect. then, if the remaining ticks of that potion effect are equal to 1, if the entity is still targeting an entity for attack, launch projectile via procedure. this should equate to a makeshift attack behaviour. 

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll send you a image later
Tue, 04/22/2025 - 17:25

I'll send you a image later