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

InhabitedTime not always updating in some chunks

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                CHK: