Day counter not working.

Started by ilov3gam3z on

Topic category: Help with modding (Java Edition)

Last seen on 18:29, 25. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Day counter not working.

I created a day counter, but when i run it it updates to a new day every tick. I really don't understand why. All i'm trying to do is every day/time a player slept, it updates the counter.

Here is my code link, just click the download button.

It contains a .ptpl file and a screenshot if its contents.

https://github.com/ilov3gam3z/File-Issues/blob/main/things%20related%20to%20the%20issue.zip

Last seen on 00:56, 4. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To get the day of a…
Sun, 08/25/2024 - 22:50

To get the day of a minecraft world you can take the game time and divide it by 24000 and round it down to get the day number, like this. https://imgur.com/a/QYEjlQu