Skip to content

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:

  1. Create a file named cdn_config.json in the root directory of your BDS server.
  2. Configure the packs by specifying the UUID of the resource pack and the URL where it can be downloaded.
  3. Create a file named world_resource_packs.json in the worlds/<level-name>/ directory.
  4. Add the UUID and version (as defined in the pack's manifest.json) of each resource pack to world_resource_packs.json to ensure it is loaded into the world.

Example CDN Configuration ​

Here is an example configuration for the cdn_config.json file:

json
{
    "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.0 in this case) must exactly match the version defined in the manifest.json of the resource pack.

Example World Resource Pack Configuration ​

Here is an example configuration for the world_resource_packs.json file:

json
[
  {
    "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.

Ready To go!