Custom attack timers

Started by Sharpblade1 on

Topic category: Help with MCreator software

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom attack timers

In creating bosses for my map, I want them to have custom attacks. I’ve been trying to use a timer so that the attacks will be evenly spaced. However, in looking up tutorials and testing I have not been able to get them to work, NBT or Global timers.

In the mod “Call of Yucatah” the creators are able to give their bosses custom attacks. I was wondering is there anything you can suggest for timers or other ways of doing this.

Thank you very much.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I made a boss only one, but…
Wed, 07/17/2024 - 14:42

I made a boss only one, but it works really well so I'll tell you what I've done

on every entity tick update if the entity is targeting another entity store in a  local variable a number between 1 and something big like 20000, then do something like 

if variable >1800 do attack 1

if variable > 1200 and variable <1500 do attack 2

if variable > 700 and variable <900 do attack 3

 

I used random numbers as an example, do some testing an set the right numbers to make so that the boss doesn't attack every tick but still isn't super slow attacking 

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also if you could send a…
Wed, 07/17/2024 - 15:26

Also if you could send a screenshot, showing the procedure that would be very helpful.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you ever so much for…
Wed, 07/17/2024 - 15:56

Thank you ever so much for both screenshots, I will test that and hopeful it will go with out a hitch.

Again thank God bless.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you're welcome
Wed, 07/17/2024 - 15:57

you're welcome