Started by
ZenixZet
on
Topic category: Help with Minecraft modding (Java Edition)
I created a mob that attacks with a sword and I want it to shoot a fireball, but when I choose a ranged battle, it shoots too often. How to configure a mob to fire a projectile every ten seconds. This is probably done in the procedure.
global var:currTick (number,GLOBAL_MAP)
procedure 1:(global trigger on each tick)
>>set global currTick (get global currTick+1)
procedure 2:(trigger:on entity tick)
>>if (get global currTick mod 200 is 0)
>>>>fire projectile PS:working on this step. Hmm...