Skip to content

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 .mcaddon often holds a behavior pack next to the resource pack. Pumpkin can't use behavior packs, so only the resource pack is taken (written to packs/.extracted/ and served from there) and the rest is logged as left out. A pack from a bundle is named after the bundle: Bundle.mcaddon becomes Bundle.mcpack, or Bundle - <pack>.mcpack when it holds several. Use that name in overrides.
  • Reachable URLs: set web.public_url to an address players can reach. Without it, the plugin falls back to 127.0.0.1, which only works for players on the server machine. To have UPnPumpkin open web.port on your router instead, set web.port_forwarding = true and keep web.bind at 0.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.

PermissionWhy
fs.read.dataRead the packs folder and the plugin config in its data folder.
fs.write.dataCreate and update the config, and write the resource packs found in .mcaddon files.
network.tcp.bindListen for pack downloads from Bedrock clients.
http.outboundCheck Pumpkin Market for plugin updates.

Commands ​

CommandDescriptionPermissionDefault access
/baddon listList detected packs and their effective settingsBedrockAddonManager:command.baddon.listoperators (level 3)
/baddon exportPrint the pumpkin.toml block that makes Pumpkin offer the listed packsBedrockAddonManager:command.baddon.exportoperators (level 3)
/baddon reloadReload config.toml and rescan the packs folderBedrockAddonManager:command.baddon.reloadoperators (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.

OptionTypeDefaultDescription
web.enabledbooleantrueServe the packs over HTTP. Turn this off if the packs are hosted elsewhere and every pack has a download_url override.
web.bindstring"0.0.0.0"IPv4 address to listen on.
web.portinteger8123Port to listen on.
web.public_urlstring""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_forwardingbooleanfalseSet 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.directorystring"packs"Folder inside this plugin's data folder that is scanned for .mcpack and .mcaddon files.
packs.forcebooleanfalseRequire players to accept the packs before they can join. /baddon export writes it as resource_pack.bedrock.force.
overrides."<file>".enabledbooleannoneSet to false to leave the pack out entirely.
overrides."<file>".orderintegernonePosition in the pack list and in the exported block, lowest first.
overrides."<file>".download_urlstringnoneDownload the pack from this URL instead of the built-in web server, for example a CDN.
overrides."<file>".addon_packbooleannoneMark the pack as an add-on pack. Normally derived from the manifest.
overrides."<file>".has_scriptsbooleannoneMark the pack as containing scripts. Normally derived from the manifest.
overrides."<file>".rtx_enabledbooleannoneEnable ray tracing for the pack. Normally derived from the manifest.
overrides."<file>".sub_pack_namestringnoneName of the sub-pack to activate.
overrides."<file>".content_keystringnoneDecryption key for an encrypted pack.
overrides."<file>".content_idstringnoneContent identifier of the pack.
A fresh install gets this file:
toml
# 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.

pumpkin-plugins documentation