Started by
ilov3gam3z
on
Topic category: Help with Minecraft modding (Java Edition)
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
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