Usage and development
Usage
Generate Minecraft-themed names with bedform/Utility/Name:
import { Name } from "bedform/Utility";
const Generated = Name.Make(); // Three random words, such as "creeper-copper-mending".
const Compact = Name.MakeFast(); // Three words from the smaller Minecraft-focused vocabulary.
const Custom = Name.Make({ Dictionary: [ "stone", "slime" ], NumWords: 2, Separator: "_" });
const Vocabulary: ReadonlyArray<string> = Name.Dictionary;Name is also available as Utility.Name from bedform. The default dictionary
contains 765 frozen, unique lowercase words collected from vanilla BDS 1.26.63.1
block, item, entity, effect, enchantment and dimension registries. Names sample
with replacement and do not guarantee uniqueness. NumWords must be a nonnegative
safe integer; zero returns an empty string. Requesting words from an empty
dictionary throws RangeError. Custom dictionary strings are preserved as supplied.
Name.DictionaryFast is a frozen subset of 256 recognizable Minecraft words,
favoring iconic blocks, mobs, tools and resources over generic or obscure terms.
Name.MakeFast accepts the same configuration as Name.Make, defaulting to this
smaller dictionary. Three-word names have 16,777,216 possible combinations;
uniqueness is still not guaranteed. Increase NumWords when generating many names.
Tree-shaking bundles using only MakeFast can omit the full dictionary; unbundled
imports initialize both exported dictionaries.
Host-side project configuration is available through bedform/Config.
See shared project configuration for the schema,
TypeScript constructor, JSON generation, and current integration boundaries.
Player input signals (world, InputButton and the button gesture after-events) moved to
@bedform/server, which re-exports @minecraft/server with them in place.
@TODO
Development
From the repository root:
npm run build --workspace @bedform/effect
npm run build --workspace bedform
npm run verify --workspace bedformThe source build uses only the ES2022 standard library plus Bedrock declarations. Host tests cover recognition boundaries, lifecycle cancellation, resource cleanup, errors, public declarations, packed consumers, README examples, and execution without Node/browser globals. World input tests use mocked Bedrock signals and clocks; they do not require or modify a live world. The reserved CLI entrypoint currently performs no actions.