.minecraft or simply minecraft in macOS is the name of the folder Minecraft creates to run from. This one includes the .jar files, sound, music, resources packs, personal options, worlds, and so on.
Locating the .minecraft folder is able to be vital for installing a resource pack, or to locate any made screenshots. Here is the table pointing out the default directory for .minecraft.
The location of the Windows in the table above is just the default case. All the launchers are able to set the .minecraft at any path. For those the users of Windows and are not familiar with how to find your appdata folder, please follow these following steps. The first thing that you have to do is to click Start > Run. In case you do not see Run, please press Windows+R instead. then, type %appdata%.minecraft and click OK. For those the users of Mac, you are able to open the folder through Spotlight. First of all, you need to press Command+Space or open the Spotlight popup through the magnifying glass icon in the right of the Menu Bar. After that, type ~/Library/Application Support/minecraft and hit Enter. If you use Linux or macOS, the ~ in the path refers to the home directory. Please take a note that each folder starting with a . are hidden by default. In most managers, pressing Ctrl+H toggles their hidden status.
.minecraft file hierarchy
o minecraft.jar (it is the client.jar for 1.5.2. The game does not use it though; it uses the versions folder instead.)
- (.dll files)
o [Some libraries packaged per Maven convention (without POM files)]
- launcher profiles.json
Use of a resource pack is able to be forced by changing the zip of it to resources.zip and placing it in the root folder of the world save. This one is for single player only. However, there is another method for servers to ask clients if they want to use the server resource pack. Please visit the official website of Minecraft and the community to know more.