Content Delivery Network Configurations 🌐🚀
What is the cdn_config.json? 📄
The cdn_config.json file allows you to use a CDN (Content Delivery Network) to distribute resource packs among your players. This is particularly useful for server administrators who want to update resource packs without manually installing them into the resource_packs directory of the server and restarting the BDS (Bedrock Dedicated Server) to apply the changes. By using a CDN, the resource packs can be hosted externally and downloaded by players as needed, ensuring they always have the latest version. 🔄
Setup 🛠️
To use this feature, follow these steps:
- Create a file named
cdn_config.jsonin the root directory of your BDS server. - Configure the packs by specifying the UUID of the resource pack and the URL where it can be downloaded.
- Create a file named
world_resource_packs.jsonin theworlds/<level-name>/directory. - Add the UUID and version (as defined in the pack's
manifest.json) of each resource pack toworld_resource_packs.jsonto ensure it is loaded into the world.
Example CDN Configuration
Here is an example configuration for the cdn_config.json file:
{
"ee649bcf-256c-4013-9068-6a802b89d756_0.1.0": "https://github.com/ZtechNetwork/MCBVanillaBehaviorPack/releases/download/v1.20.0/VanillaBehaviorPack.zip"
}In this example, the resource pack identified by the UUID ee649bcf-256c-4013-9068-6a802b89d756 is linked to a URL where the pack can be downloaded. This URL points to a release on GitHub, demonstrating how the CDN can host and serve the resource pack to players.
Note: The version (
0.1.0in this case) must exactly match the version defined in themanifest.jsonof the resource pack.
Example World Resource Pack Configuration
Here is an example configuration for the world_resource_packs.json file:
[
{
"pack_id": "ee649bcf-256c-4013-9068-6a802b89d756",
"version": [0, 1, 0]
}
]This ensures the server loads the specified version of the resource pack for the world located at worlds/<level-name>/.
Start the server up and join the world.
