Find your playtime on a Minecraft world

Solved
Anonymous user -  
 Anonymous user -

Hello,
I'd like to know how I can find out the number of hours (or minutes) I've spent on a Minecraft world just by opening the player's statistics .json file. I retrieved my old Minecraft worlds and I noticed that in the "stats" folder of my world, there were .json files with information inside, and what interests me the most is this: "stat.playOneMinute":8390801

I would like to know if I need to divide this number by 60, by 20, or by 1200 to get my real time in minutes (and then I would simply divide by 60 to get hours).

Have a nice day.


4 answers

  1. diablo13800 Posted messages 3469 Registration date   Status Member Last intervention   1 872
     

    Hello,

    Given the size of the numbers, the most likely scenario is division by 1200.

    After checking on a Reddit post, the command stat.playOneMinute returns a number of ticks.

    1 minute = 20 ticks.

    1 hour = 60 minutes

    => 1 hour = 60*20 = 1200 ticks


    To conquer without danger is to triumph without glory.
    Pierre Corneille, Le Cid

    1
  2. Anonymous user
     

    Thank you for your very quick response!

    So if I do 8390801 / 1200, will I get my time in hours?

    8390801 / 1200 = 6.992 hours?

    0
    1. diablo13800 Posted messages 3469 Registration date   Status Member Last intervention   1 872
       

      Yes, that’s what I understand from the explanations coming from the Reddit post. And it seems to me the most coherent.

      So, 166 days for a game that's over 10 years old isn’t unreasonable.

      0
  3. Anonymous user
     

    But isn't it 20 ticks per second?

    0
    1. diablo13800 Posted messages 3469 Registration date   Status Member Last intervention   1 872
       

      Indeed... I got confused.

      So your calculation becomes

      8390801 / 20 = 419540.05 sec

      419540.05 sec / 60 = 6992 minutes

      6992 minutes / 24 = 291.35 hours

      0
  4. Anonymous user
     

    Oh okay, thanks, but I don't understand why we need to divide by 24, isn't it by 60? That would give 6992 minutes / 60 = 116 hours, that seems so little to me, but I have about 20 worlds... and I think I haven't played much on this world that's why (even though 116 hours is already quite a lot)

    0
    1. diablo13800 Posted messages 3469 Registration date   Status Member Last intervention   1 872
       

      ... I am really tired... the /60 is indeed better

      To continue :)

      8390801 / 20 = 419540.05 sec

      419540.05 sec / 60 = 6992 minutes

      6992 minutes / 60 = 116 hours

      1
      1. Anonymous user > diablo13800 Posted messages 3469 Registration date   Status Member Last intervention  
         

        No problem ^^ Thank you for your quick responses and have a good evening!

        0