Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-127407

InhabitedTime not always updating in some chunks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.12.2, Minecraft 18w11a, 20w30a, 1.17.1, 1.18.2
    • None
    • Community Consensus
    • Chunk loading

      The NBT for each chunk includes a long integer variable called "InhabitedTime" that is supposed to be incremented whenever the chunk is loaded with a player in the vicinity. However, this doesn't always get updated as expected. For some chunks, the variable increases more slowly than expected.

      To test: create a new world in creative mode and simply do nothing for 20 to 30 minutes. Then save the world and inspect "InhabitedTime" for each chunk.

      The screenshots were obtained by mapping the inhabited time for each chunk to a heat map with lighter values corresponding to higher inhabited times. Two worlds were created with the same seed (seed was 1).

      Tested in the 18w11a snapshot but the problem is known to exist in older versions.

        1. HeatMap2-x4z4.png
          HeatMap2-x4z4.png
          0.3 kB
        2. HeatMap1-x4z4.png
          HeatMap1-x4z4.png
          0.3 kB
        3. InhabitedTime-1-12-2.png
          InhabitedTime-1-12-2.png
          0.3 kB
        4. Test127407-1122.zip
          2.39 MB
        5. InhabitedTime-1-8-9.png
          InhabitedTime-1-8-9.png
          0.3 kB
        6. Test127407-1089.zip
          2.35 MB
        7. 1_6_4.png
          1_6_4.png
          3 kB
        8. Map_MC127407_InhabitedTime_20w30a.png
          Map_MC127407_InhabitedTime_20w30a.png
          2 kB
        9. Map_MC127407_Caves_20w30a.png
          Map_MC127407_Caves_20w30a.png
          69 kB

            Unassigned Unassigned
            bdm68 bdm68
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: