Com.mojang

com.mojang is the folder used internally by Minecraft. It contains worlds, JSON data, and other files necessary for the game to run.

Locating com.mojang
{|class="wikitable" !Platform !Location
 * Windows (including mobile)
 * Android and Fire OS
 * iOS
 * into File Explorer leads to a folder from which the user can find the rest of the file path.
 * Android and Fire OS
 * iOS
 * into File Explorer leads to a folder from which the user can find the rest of the file path.
 * iOS
 * into File Explorer leads to a folder from which the user can find the rest of the file path.

On Xbox, the files are stored locally. They are also stored online if signed in to Xbox Live.

On iOS, the folder can be accessed simply by searching  in the Files app.

com.mojang file hierarchy

 * com.mojang
 * behavior_packs (see )
 * development_behavior_packs
 * development_resource_packs
 * development_skin_packs
 * logs
 * ClientCorrelation.dat
 * minecraftpe
 * catalog_info.json
 * clientId.txt
 * custom.png
 * global_resource_packs.json
 * hs
 * options.txt
 * telemetry_info.json
 * valid_known_packs.json
 * minecraftWorlds
 * 
 * behavior_packs (see )
 * db
 * .dat
 * CURRENT.dat
 * LOCK.dat
 * MANIFEST-.dat
 * level.dat
 * level.dat_old
 * levelname.txt
 * resource_packs (see )
 * world_behavior_packs.json
 * world_icon.jpg
 * world_resource_packs.json
 * resource_packs (see )
 * skin_packs
 * ud (there may be more than 1)
 * world_templates
 * world_templates

Add-ons
Each world, and the com.mojang folder itself, has a resource_packs folder. This contains resource packs with the following structure:
 * manifest.json
 * pack_icon.png
 * shaders
 * glsl
 * renderchunk.dat
 * hlsl
 * renerchunk.fragment.dat
 * text
 * .lang
 * languages.json
 * languages.json

Behavior packs can contain anything that a resource pack contains, plus additional files:


 * loot_tables
 * blocks
 * .json
 * entities
 * .json
 * recipes
 * .json
 * .json