[MCPE-19966] The game became more finicky about the structure of .mcworld / .mcpack files Created: 10/Feb/17  Updated: 28/Aug/19  Resolved: 28/Aug/19

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.0.3, 1.2.1.1, 1.5.2.1, 1.6.0.8 Beta, 1.6.0, 1.7.0.3 Beta
Fix Version/s: None

Type: Bug
Reporter: PHO
Resolution: Cannot Reproduce Votes: 2
Labels: None

Attachments: File ZombieNetherPortalSpawn.mcworld     File ZombieNetherPortalSpawn.modified.mcworld    
Issue Links:
Duplicate
is duplicated by MCPE-37357 Worlds don't show after importing Resolved
Confirmation Status: Confirmed
Platform: Tablet - iOS - iPad Pro
CHK:
ADO: 140578

 Description   

MCPE no longer successfully imports .mcworld / .mcpack files with one level of superfluous directory. I believe this is a regression.

The attached file "ZombieNetherPortalSpawn.mcworld" has the following structure and can not be imported successfully:

% unzip -l ZombieNetherPortalSpawn.mcworld
Archive:  ZombieNetherPortalSpawn.mcworld
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  02-09-17 09:15   H5MAALzHCAA=/level.dat_old
        0  02-09-17 09:15   H5MAALzHCAA=/level.dat
        0  02-09-17 09:15   H5MAALzHCAA=/db/LOCK
        0  02-09-17 09:15   H5MAALzHCAA=/db/000009.ldb
        0  02-09-17 09:15   H5MAALzHCAA=/db/000012.ldb
        0  02-09-17 09:15   H5MAALzHCAA=/db/CURRENT
        0  02-09-17 09:15   H5MAALzHCAA=/db/000005.ldb
        0  02-09-17 09:15   H5MAALzHCAA=/db/000007.ldb
        0  02-09-17 09:15   H5MAALzHCAA=/db/000015.ldb
        0  02-09-17 09:15   H5MAALzHCAA=/db/000016.log
        0  02-09-17 09:15   H5MAALzHCAA=/db/MANIFEST-000014
        0  02-09-17 09:15   H5MAALzHCAA=/levelname.txt
        0  02-09-17 09:15   H5MAALzHCAA=/world_resource_packs.json
        0  02-09-17 09:15   H5MAALzHCAA=/world_behavior_packs.json
 --------                   -------
        0                   14 files

On the other hand, "ZombieNetherPortalSpawn.modified.mcworld" has the following structure and just works:

% unzip -l ZombieNetherPortalSpawn.modified.mcworld
Archive:  ZombieNetherPortalSpawn.modified.mcworld
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  02-10-17 20:53   db/
        0  02-09-17 09:15   db/LOCK
    21653  02-09-17 09:15   db/000009.ldb
     1222  02-09-17 09:15   db/000012.ldb
       16  02-09-17 09:15   db/CURRENT
   121406  02-09-17 09:15   db/000005.ldb
   135167  02-09-17 09:15   db/000007.ldb
     2943  02-09-17 09:15   db/000015.ldb
     2736  02-09-17 09:15   db/000016.log
      279  02-09-17 09:15   db/MANIFEST-000014
      796  02-09-17 09:15   level.dat
      796  02-09-17 09:15   level.dat_old
       10  02-09-17 09:15   levelname.txt
        3  02-09-17 09:15   world_behavior_packs.json
        3  02-09-17 09:15   world_resource_packs.json
 --------                   -------
   287030                   15 files


 Comments   
Comment by [Mojang] Mega_Spud (Jay Wells) [ 28/Aug/19 ]

Thank you for your report!
However, this issue has been closed as Cannot Reproduce.

We were unable to reproduce the problem you are describing in the latest version.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Comment by PHO [ 10/Feb/17 ]

By importing the former file, the game actually stores its contents under the directory "games/com.mojang/minecraftWorlds" but with an invalid structure. That is, it assigns a randomly generated ID to the world and stores the contents of .mcworld file as-is, which results in something like:

games
`-- com.mojang
    `-- minecraftWorlds
        `-- a20GALnDAAA=
            `-- H5MAALzHCAA=
                |-- level.dat_old
                |-- level.dat
                |-- db
                `-- ...
Generated at Sat Jan 11 15:25:15 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.