Subpacks

What are subpacks?

Subpacks are what cause the gear icon to appear on packs. They are intended for texture resolutions to load on different memory capacities, but can also be used to create file variations in behavior and resource packs which can then be chosen by clicking the gear icon and adjusting the slider.

Creating subpacks

  • To start adding a subpack you need to create a subpacks folder inside the root of your BP or RP.
  • Then inside the subpacks folder add a folder for each subpack you want to have e.g.
  • RP
    • subpacks
      • subpack_1
      • subpack_2
  • Inside each of these folders you can add the content of each subpack. This can be anything that normally goes in your behavior or resource pack. e.g.
  • RP
    • subpacks
      • subpack_1
        • textures
          • blocks
            • dirt.png
          • items
            • example_item.png
      • subpack_2
        • textures
          • blocks
            • dirt.png
          • items
            • example_item.png

Adding subpacks to manifests

To register the subpacks in the manifest you need to add subpacks and this contains an array of subpacks.

Example:

RP/manifest.jsonCopy
{
	"format_version": 2,
	"header": {
		"name": "Pack Name",
		"description": "Pack Description",
		"uuid": "2fc2dd6f-86cb-4370-af70-21490a1ae471",
		"version": [1, 0, 0],
		"min_engine_version": [1, 13, 0]
	},
	"modules": [
		{
			"type": "resources",
			"uuid": "f6821b4a-1854-44fc-a8a4-0c2847ffda46",
			"version": [1, 0, 0]
		}
	],
	"subpacks": [
		{
			"folder_name": "subpack_1",
			"name": "First Subpack",
			"memory_tier": 0
		},
		{
			"folder_name": "subpack_2",
			"name": "Second Subpack",
			"memory_tier": 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
  • name

Defines the name that will show when selecting the subpacks.

  • memory_tier

Thought to be the number specifying the order of the subpacks on the slider. Further testing have found that it is not the case. Instead the order is determined by the order of each JSON object literal in the subpack list which are sorted from left to right of the slider. E.g the first object will be placed on the left most of the slider and the last object will be placed on the right most of the slider.

  • folder_name

This corresponds to the name of the folder to be used in this subpack, for example in the examples above this would be subpack_1 or subpack_2. These names can be anything you want, they don't need to follow the subpack_n format.

Contributors

ChilRxSirLich