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
Below is a table showing the default directory for com.mojang.

{|class="wikitable" !Platform !Location
 * Windows (including mobile)
 * Android and Fire OS
 * iOS
 * in the Files app.
 * Android and Fire OS
 * iOS
 * in the Files app.
 * iOS
 * 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
 * xal
 * xal

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