contents.json
What you will find here
- What is contents.json.
- What for it is and who uses it.
- Automatizing the process.
contents.json
contents.json
is a file located in RP|BP/contents.json
. This file contains list of all files in pack. Example:
RP/contents.jsonCopy
{
"content": [
{
"path": "texts/en_US.lang"
},
{
"path": "contents.json"
},
{
"path": "manifest.json"
},
{
"path": "animations/my_animation.animation.json"
},
{
"path": "animation_controllers/my_ac.ac.json"
},
{
"path": "entity/my_entity.entity.json"
},
{
"path": "textures/textures_list.json"
},
{
"path": "textures/blocks/my_block.png"
},
"version": 1
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
📁RP
📁texts
🈵en_US.lang
📝manifest.json
📝contents.json
📁animations
📝my_animation.animation.json
📁animation_controllers
📝my_ac.ac.json
📁entity
📝my_entity.entity.json
📁textures
📝texture_list.json
📁blocks
🖼️my_block.png
What for this file is
This file probably optimizes the pack content, making it easier to achieve files for MC, like texture_list.json
. Mojang and marketplace content creators use this file.
Automatizing the Process
«The best contents.json is a contents.json, that is generated by Minecraft»
@MJ105
That means that you only need to create a contents.json file with empty brackets:
BP|RP/contents.jsonCopy
{}
1
Some additional information:
- Development or normal folders, it don't matter. This file is auto-filled everywhere, even in skin packs (it can crash minecraft when generating it for skin pack).
- There is no need to make separate contents.json for subpacks. Just make one file in the main folder.
We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies. See our Privacy Policy for more information.