Custom attack patterns for mobs

Started by Professional m… on

Topic category: Help with MCreator software

Custom attack patterns for mobs
Fri, 05/13/2022 - 21:39 (edited)

Hello, i am trying to make some custom attacks for my entity but can't quite get it to work. I am currently trying to use the "on entity tick" trigger without success. I tried using a "wait x ticks" followed by a lightning strike and an explosion, but for some reason it repeated the attack like 100 times in rapid succession. Should i use another trigger, or did i simply mess up?

 

EDIT:On second thought i think i can kinda tell what the problem was. I think it was starting the code every tick and as such it struck lighting after the time interval for every tick. Is there any way to fix this or an alternative?

Edited by Professional mod making noob on Fri, 05/13/2022 - 21:39
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make a variable or…
Tue, 11/29/2022 - 19:23

You could make a variable or nbt and make it go up by one every tick and then make a new procedure and if nbt or variable reaches a certain number (how ever many ticks you wanted it to be) then it will do whatever and then set variable or nbt to back to 0