Command-line tool designed for managing resource and behavior packs on a Minecraft Bedrock Dedicated Server (BDS)
Project description
BdsPackManager
BdsPackManager is a command-line tool designed for managing resource and behavior packs on a Minecraft Bedrock Dedicated Server (BDS). It allows you to easily add, validate, update, and manage packs, ensuring your server is always up-to-date with the latest content.
Features
- Add Packs: Supports adding
.mcpack,.mcaddon, and directories containing validmanifest.jsonfiles. - Automatic Unzipping: Automatically extracts and processes
.mcpackand.mcaddonfiles. - Validation: Ensures consistency between the packs listed in your server's configuration files and the actual content in the
resource_packsandbehavior_packsdirectories. - Version Updates: Update the
@minecraft/serverdependency version inbehavior_packsmanifests to ensure compatibility with your server version. - Selective Updates: Use
--update-onlyto update versions for packs in a specific folder, including.mcpackfiles. - Configurable: Specify the server directory using command-line arguments, a
.envfile, or~/.bdspackrcfor a global configuration. - Interactive or Automatic: Prompt for overwrites or use the
--forceflag to skip confirmation and automate updates.
Installation
-
Install via pip:
pip install bdspackmanager
-
Set up your environment:
-
Optionally, create a
.envfile in your project directory or a~/.bdspackrcfile for global configuration:BDS_DIRECTORY=/path/to/your/bedrock_server -
The tool prioritizes the following configuration sources:
- Command-line arguments
- Environment variables from
.envin the project directory - Environment variables from
~/.bdspackrc
-
Usage
Command-line Arguments
python -m bdspackmanager [OPTIONS] [PACKS...]
Options
PACKS...: One or more paths to.mcpack,.mcaddon, or directories containing a validmanifest.json.--bds-dir: Specify the path to the Bedrock Dedicated Server directory (overrides.envand~/.bdspackrc).--validate: Validate and rescan JSON files for consistency with the actual content in theresource_packsandbehavior_packsdirectories.--update: Update@minecraft/serverdependency versions in allbehavior_packs.--update-only <dir>: Update@minecraft/serverdependency versions for packs in the specified folder, including.mcpackfiles.--version <version>: Specify the target version for@minecraft/serverwhen using--updateor--update-only.--force: Skip confirmation prompts when overwriting existing packs.
Example Usage
-
Adding a Pack:
python -m bdspackmanager /path/to/your_pack.mcpack
-
Validating Pack Consistency:
python -m bdspackmanager --validate
-
Updating All Behavior Packs:
python -m bdspackmanager --update --version "1.16.0-beta"
-
Updating Packs in a Specific Folder:
python -m bdspackmanager --update-only /path/to/pack_folder --version "1.16.0-beta"
Global Configuration Support
BdsPackManager supports global configuration through the ~/.bdspackrc file. This file behaves like .env and allows you to set environment variables for the tool. For example:
BDS_DIRECTORY=/path/to/your/bedrock_server
When present, ~/.bdspackrc is automatically loaded and used as a fallback if a .env file is not found in the project directory. You can override these settings with command-line arguments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bdspackmanager-1.1.3.tar.gz.
File metadata
- Download URL: bdspackmanager-1.1.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.3 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0960356b28f6498ce315af6574b8d83d659a6865186c5bed73af5851d773dcdc
|
|
| MD5 |
246040d02f5ef652960cfae222af6d51
|
|
| BLAKE2b-256 |
d21c42b89f11f7fe8643bd1bf684188472fa62a58a41db21e81e338362492849
|
File details
Details for the file bdspackmanager-1.1.3-py3-none-any.whl.
File metadata
- Download URL: bdspackmanager-1.1.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.3 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c391fe8ff8466e46ddfd57a52cbcd0c483e3359dfa24b7f1399b5a5c4aa1c70
|
|
| MD5 |
bd7f21bdace41b34eff7cd06980d0361
|
|
| BLAKE2b-256 |
6ad8537fddf251833f8a579ffaa8b6b450180fc261958c440f4018c15a3c6d88
|