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

Trading with a Cartograph Villager creates hundreds (potentially thousands) of junk files in your world's region folder



    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.15.2, 20w16a, 20w17a, 20w18a, 20w19a, 20w20b, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16.2, 1.16.3, 1.17
    • None
    • Community Consensus
    • Save Data, Trading


      The bug

      When unlocking explorer map trades with a Cartographer Villager, a region file is created for every chunk the game tries to spawn the respective structure. Each region file contains a single empty chunk and takes just a few KB. For the arbitrarily chosen seed "villager"; 30+ files are created when unlocking the Ocean Explorer Map, and 900+ files are created when unlocking the Woodland Explorer Map. If you are unlucky and the nearest woodland mansion is further away, you easily get 1000+ files.

      How to reproduce

      1. Make a creative world with the default world generator. Seed doesn't matter but I used the seed "villager" in the screenshots.
      2. Open up the folder of the world you just created and go into the region folder. You should see just a couple of region files as you would expect. In my case there is 6.
      3. Go back into the world, spawn a villager, place the Cartography Table and trade with him until he unlocks the ocean explorer map.
      4. Now check the region folder again and there is a bunch of small region files. In my case there are now a total of 39 region files, most of which are just a few KB in size and containing a single empty chunk. This can also been seen in an attached screenshot.
      5. Continue trading with him until you unlock the woodland explorer map. The region folder now has 939 files where pretty much all of them contain a single empty chunk. I have attached a screenshot showing the region folder in this stage as well.

      I assume this is happening because the game is checking potential locations for a Monument/Mansion until it find a valid location, and the chunk and region file is created for each location it checks.

      Unsurprisingly, using the /locate Monument and /locate Mansion commands has the exact same results as trading with the villager.

      Some versions I tested that have this bug include:

      • 1.16 Snapshot versions
      • 1.15.2
      • 1.14

      1.13 has a less severe variation of the bug where only the region file where the structure succeeds at generating is created. Here the file contains a single otherwise empty chunk with some structure start info. This isn't nearly as bad as the newer versions, but still creates an unnecessary file.

      1.12.2 doesn't have the bug. No region files are created with this version.


        1. after_ocean_map.png
          42 kB
        2. after_woodland_map.png
          43 kB
        3. example_region.png
          29 kB
        4. fresh_world.png
          14 kB



            Unassigned Unassigned
            isakgb Isak
            11 Vote for this issue
            9 Start watching this issue