[1.18 snapshot] "On World Update Tick" is running faster than it should

Started by UC101 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 10:11, 5. May 2022
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[1.18 snapshot] "On World Update Tick" is running faster than it should

It is my understanding that the world tick is supposed to occur 20 times per second,

I have noticed that it seems to be updating much faster than that, which is causing issues with timing in my mod. 

For example, I would expect this procedure to say "Tick" into the chat once per second, however it ends up printing "Tick" many times per second.  

code

Last seen on 13:01, 21. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it still does this
Tue, 06/28/2022 - 18:54

it still does this

Last seen on 19:14, 23. Apr 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! I am also…
Fri, 08/19/2022 - 15:34

Hello! I am also experiencing this issue in version 2022.2. Thank you for making a post about it!

 

Last seen on 06:22, 13. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So this is because those…
Mon, 08/22/2022 - 05:05

So this is because those tick values don't correspond to 1/20 seconds. It does run much, much faster than that, I don't know the exact value, it is not the same as in game redstone ticks. To sum it up simply though, it is like a "code tick". Otherwise, it would take too long to enact code to the player if those ticks corresponded to 1/20 seconds.