How do I use the "on entity update tick" event?

Started by nod3py on

Topic category: Help with MCreator software

Last seen on 22:26, 6. Oct 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I use the "on entity update tick" event?

I was using the program to make an entity which performs an action every # of ticks in-game. I noticed there was an "on entity update tick" procedure event, and so I went there, since I had used this in the past with blocks (A simple ore generator). I got to work, making the procedure, but once I was done and I tested it, I realized I had not set any update tick amount.

How would I edit this amount? This would be very useful, since my entire project is depending on this.

 

Thanks for any further help!

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
From what i know you cannot…
Tue, 07/07/2020 - 04:12

From what i know you cannot edit the tick update rate for a entity simply with options.

This is a sample code to help you understand how you can make it work.

basically upon being right clicked it creates a timer.  

P.S 

Keep in mind the data here is all saved to the entity being right clicked not the player.

Have Any questions I'm here.

But this link with multiple tips and tutorials is great :) >https://www.youtube.com/watch?v=qS-H_SDdDso&list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

I have here:

Entity_Right_Clicked

Entity_Right_Clicked

 

and

 

Entity_Tick_Update

Tickupdate

Last seen on 22:26, 6. Oct 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess I am unsure of how…
Tue, 07/07/2020 - 14:53

I guess I am unsure of how it would make a timer from these blocks. There isn't anything about delays or anything from my knowledge.

I am trying to make an entity wait for x amount of seconds, and then repeat. Maybe it's not in the update tick procedure, but how would I do that?

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The CooldownCounter is a…
Tue, 07/07/2020 - 19:27

The CooldownCounter is a timer in this situation.

When the CooldownCounter is bigger than 60,

It will then let you right click the entity and get the diamond. Test it out make a mob with these procedures in the images.

Also note every 20 ticks is =1 second.

If none of this helps, use the link or visit YouTube 

And search for: mcreator tutorial playlist.

Last seen on 22:26, 6. Oct 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was able to find info from…
Wed, 07/08/2020 - 00:23

I was able to find info from a video in the playlist! Thanks for the source!

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem 👍
Wed, 07/08/2020 - 01:08

No problem 👍