BedrockAddonManager v0.0.0
BedrockAddonManager hosts Bedrock resource packs over HTTP, reads their manifests and prints the pumpkin.toml block that makes Pumpkin offer them to players.
See the plugin guide and API reference on the documentation site.
Installation
BedrockAddonManager hasn't been released yet, so there is no bedrock-addon-manager.wasm to download. It doesn't send resource-pack offers yet, so players can't download packs from the server. To try it, clone this repository, run pnpm build --filter @pumpkin-plugins/bedrock-addon-manager, copy build/bedrock-addon-manager.wasm from the plugin's folder to your server's plugins/ folder, and restart Pumpkin.
Pumpkin offers Bedrock players only the packs listed in its pumpkin.toml. To get the packs offered, run /baddon export on the server console, paste what it prints into pumpkin.toml and restart Pumpkin. Offer the packs to players has the details.
Adding packs
Put .mcpack files, or .mcaddon bundles, in plugins/data/BedrockAddonManager/packs/ and run /baddon reload (or restart the server). The plugin reads each pack's manifest.json for its UUID, version and flags, and serves the pack over HTTP. pumpkin.toml is never changed.
- Packs are never picked up on their own. They are read on server start and on
/baddon reload. - A
.mcaddonoften holds a behavior pack next to the resource pack. Pumpkin can't use behavior packs, so only the resource pack is taken (written topacks/.extracted/and served from there) and the rest is logged as left out. A pack from a bundle is named after the bundle:Bundle.mcaddonbecomesBundle.mcpack, orBundle - <pack>.mcpackwhen it holds several. Use that name inoverrides. - Reachable URLs: set
web.public_urlto an address players can reach. Without it, the plugin falls back to127.0.0.1, which only works for players on the server machine. To have UPnPumpkin openweb.porton your router instead, setweb.port_forwarding = trueand keepweb.bindat0.0.0.0; the plugin then uses the public address it returns (for example,http://203.0.113.7:8123). Nothing is opened when this machine already has a public address.
Permissions
Pumpkin asks you to approve these on the server console when it loads the plugin. It skips the question when the [plugins] table in pumpkin.toml lists all of them in allowed_permissions or sets ask_permission_confirmation = false. Pumpkin remembers your answer and asks again after the plugin file or this list changes.
| Permission | Why |
|---|---|
fs.read.data | Read the packs folder and the plugin config in its data folder. |
fs.write.data | Create and update the config, and write the resource packs found in .mcaddon files. |
network.tcp.bind | Listen for pack downloads from Bedrock clients. |
http.outbound | Check Pumpkin Market for plugin updates. |
Commands
| Command | Description | Permission | Default access |
|---|---|---|---|
/baddon list | List detected packs and their effective settings | BedrockAddonManager:command.baddon.list | operators (level 3) |
/baddon export | Print the pumpkin.toml block that makes Pumpkin offer the listed packs | BedrockAddonManager:command.baddon.export | operators (level 3) |
/baddon reload | Reload config.toml and rescan the packs folder | BedrockAddonManager:command.baddon.reload | operators (level 3) |
Configuration
Settings live in plugins/data/BedrockAddonManager/config.toml. The plugin creates the file if needed, adds settings from the schema and removes settings no longer defined there. Values for existing settings are preserved.
| Option | Type | Default | Description |
|---|---|---|---|
web.enabled | boolean | true | Serve the packs over HTTP. Turn this off if the packs are hosted elsewhere and every pack has a download_url override. |
web.bind | string | "0.0.0.0" | IPv4 address to listen on. |
web.port | integer | 8123 | Port to listen on. |
web.public_url | string | "" | Base URL Bedrock clients should use to download packs, without a trailing slash, query or fragment; for example "https://packs.example.com". The plugin serves plain HTTP. Put a reverse proxy in front of it for HTTPS. When empty, the plugin uses the public address reported by UPnPumpkin if forwarding succeeds, or a loopback URL on the configured port otherwise. A loopback URL works only for players on the server machine. |
web.port_forwarding | boolean | false | Set to true to have UPnPumpkin open port on your router (UPnP or NAT-PMP) and use the public address it returns. It only applies when public_url is empty and bind is "0.0.0.0". No port is opened when this machine already has a public address or UPnPumpkin is not installed. Off by default because it changes your router. |
packs.directory | string | "packs" | Folder inside this plugin's data folder that is scanned for .mcpack and .mcaddon files. |
packs.force | boolean | false | Require players to accept the packs before they can join. /baddon export writes it as resource_pack.bedrock.force. |
overrides."<file>".enabled | boolean | none | Set to false to leave the pack out entirely. |
overrides."<file>".order | integer | none | Position in the pack list and in the exported block, lowest first. |
overrides."<file>".download_url | string | none | Download the pack from this URL instead of the built-in web server, for example a CDN. |
overrides."<file>".addon_pack | boolean | none | Mark the pack as an add-on pack. Normally derived from the manifest. |
overrides."<file>".has_scripts | boolean | none | Mark the pack as containing scripts. Normally derived from the manifest. |
overrides."<file>".rtx_enabled | boolean | none | Enable ray tracing for the pack. Normally derived from the manifest. |
overrides."<file>".sub_pack_name | string | none | Name of the sub-pack to activate. |
overrides."<file>".content_key | string | none | Decryption key for an encrypted pack. |
overrides."<file>".content_id | string | none | Content identifier of the pack. |
A fresh install gets this file:
# BedrockAddonManager configuration.
# This file is managed by the plugin: when it starts, settings that were added are written here with
# their defaults and settings that were removed are dropped. Your values are kept; comments you add
# are not. Changes apply after `/baddon reload` or a server restart.
# The web server that serves the packs to Bedrock clients.
[web]
# Serve the packs over HTTP. Turn this off if the packs are hosted elsewhere and every pack has a
# download_url override.
enabled = true
# IPv4 address to listen on.
bind = "0.0.0.0"
# Port to listen on.
port = 8123
# Base URL Bedrock clients should use to download packs, without a trailing slash, query or
# fragment; for example "https://packs.example.com". The plugin serves plain HTTP. Put a reverse
# proxy in front of it for HTTPS. When empty, the plugin uses the public address reported by
# UPnPumpkin if forwarding succeeds, or a loopback URL on the configured port otherwise. A loopback
# URL works only for players on the server machine.
public_url = ""
# Set to true to have UPnPumpkin open `port` on your router (UPnP or NAT-PMP) and use the public
# address it returns. It only applies when `public_url` is empty and `bind` is "0.0.0.0". No port is
# opened when this machine already has a public address or UPnPumpkin is not installed. Off by
# default because it changes your router.
port_forwarding = false
# Where the packs are and how they are listed.
[packs]
# Folder inside this plugin's data folder that is scanned for .mcpack and .mcaddon files.
directory = "packs"
# Require players to accept the packs before they can join. `/baddon export` writes it as
# `resource_pack.bedrock.force`.
force = false
# Per-pack overrides, keyed by file name. For packs extracted from a `.mcaddon`, use the name shown
# by `/baddon list`. All settings are optional. Packs are ordered by `order` (lowest first, default
# 0), then by file name. Except for `enabled`, they only reach players through the block `/baddon
# export` prints.
#
# [overrides."My Pack.mcpack"]
# enabled = false # Set to false to leave the pack out entirely.
# order = 10 # Position in the pack list and in the exported block, lowest first.
# download_url = "https://cdn.example.com/my-pack.mcpack" # Download the pack from this URL instead of the built-in web server, for example a CDN.
# addon_pack = true # Mark the pack as an add-on pack. Normally derived from the manifest.
# has_scripts = false # Mark the pack as containing scripts. Normally derived from the manifest.
# rtx_enabled = false # Enable ray tracing for the pack. Normally derived from the manifest.
# sub_pack_name = "high_res" # Name of the sub-pack to activate.
# content_key = "..." # Decryption key for an encrypted pack.
# content_id = "..." # Content identifier of the pack.