Trying to add a delay to on entity tick update

Started by deikaeus on

Topic category: Help with modding (Java Edition)

Last seen on 18:05, 10. Nov 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to add a delay to on entity tick update

Hello,

I've been using mcreator for a long time but I'm struggling with creating timers and delays on custom mobs.  I am currently making this wizard boss for a private minecraft mod and I wanted to implement a feature where it can summon lightning randomly.  I tried using many tutorials on NBTs, delays and timers as references to making it work but all it does is make the lighting happen very quickly.

 

Can anybody please help me with this?

Thanks :)

Last seen on 18:05, 10. Nov 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
worth a shot, I'll try that…
Fri, 01/28/2022 - 00:10

worth a shot, I'll try that and see if it does work.

Last seen on 13:35, 29. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it's very easy NBt to get…
Fri, 01/28/2022 - 06:04

it's very easy

NBt to get NBT +1 on tick update

 

When NBT = any number you need then shot lightning (or randomize it so it will cast always in different moments)

 

Last seen on 18:05, 10. Nov 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Good news!  After looking…
Tue, 03/29/2022 - 19:46

Good news!  After looking into ClOud1076 's post, I figured out how to make timers work on entity tick update functions.  Thanks ClOud1076!