Way to check every second instead of every tick

Started by Dashy22 on

Topic category: Help with MCreator software

Last seen on 20:59, 19. Sep 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Way to check every second instead of every tick

I need to make a kinda complex check in a procedure always or all the time.

But i don't need to do it every single tick, and it is making the game kinda laggy

I only need it like once every second or every 10 ticks.

 

Please and thanks 

Last seen on 06:49, 31. Dec 2023
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a global var where…
Tue, 12/19/2023 - 02:20

make a global var where every tick it adds 1 to it
if global var is 10 then do whatever then make global var 0  before the add 1 to it

Last seen on 20:59, 19. Sep 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks!
Mon, 12/25/2023 - 18:04

thanks!