Started by
Chorus
on
Topic category: Help with Minecraft modding (Java Edition)
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
The same problem.
So if you make a procedure- actually, could you make it into a shareable zip and then send me the link through google drive.
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.
I'll send you a image later