Skip to content

Template

github-actions[bot] edited this page Sep 29, 2026 · 2 revisions

Register template

If you only register your pack’s documents and never query the catalog, copy this template. You do not write waitReady / add / register. You do not UUID-depend on the host.

  1. Download bedrock-registry-register.js and bedrock-registry-client.js from this client’s GitHub Releases. Put both in your behavior pack scripts/ folder with mcbe-ipc.js (Installation).
  2. Edit SOURCE (lowercase pack id). Uncomment the kind rows you ship. Type ids are `${SOURCE}:name`. Delete or leave empty the kinds you do not add.
  3. From your pack entry:
import { registerPack } from "./bedrock-registry-register.js";

void registerPack();

If a Bedrock Registry host is already in the world (another pack queries the catalog), your documents are published. If not, nothing happens — no warn.

npm: keep the template, change its client import to @mcbe-registry/client/bedrock.

Fluid and gas amount values use BOTTLE, BUCKET, and mb(n) from the client (do not hardcode). Loot chance is percent 0–100 (100 = always). The loot example lists netherite, diamond, and iron pickaxes on tools.

Pack document: id is get("pack", id); document source is the pack list index; namespace is the mymod: prefix on type ids. SOURCE on register is who owns every table in persist. The template sets id / source / namespace to SOURCE.

Recipe examples are crafting table, then furnace, then a custom station.

This file does not get, list, match, or subscribe. For those, use Quick start.

Clone this wiki locally