Framework overview
The framework for creating MineCraft: Bedrock Edition add-ons.
Inert lever, slider and wheel definitions, fixed-step motion, persistence, recoverable sessions,
synchronized pose publication and low-level custom-control hooks are available through bedform/Diagetic
and the root Diagetic export; BedformCommon ships the built-in control entities, models and runtime.
The separate Gizmo adapter foundation adds inert item capabilities and
explicit generic transform-target discovery through Diagetic.Gizmo and bedform/Diagetic/Gizmo.
See Diagetic definitions for spawn/attach handles, projection,
weighted simulation, camera/look capture, block-face bindings, runtime ownership, recovery, custom controls,
built-in controls and the demonstration server.
The Intent request client is available through
bedform/Spatial/Intent and root Spatial.Intent, with frozen built-in definitions,
PUA glyph validation and an explicitly started, acknowledged Canvas transport.
Canvas supplies the shared state service, built-in artwork and private renderer;
automatic pack inclusion follows surviving
asset-backed runtime use. Pure
text measurement is available at
bedform/Spatial/Measurement and Spatial.Measurement, including font presence,
byte limits, wrapping, centering pads and resource-pack overrides.
The shared React client supplies all stable hooks,
use, component types and both automatic JSX runtimes at bedform/Spatial/React.
The root package exports it as React and Spatial.React. The
spatial runtime provides private and shared
root lifetimes at bedform/Spatial/Renderer. The
component catalog covers
typed widgets, child rules and committed geometry. The
pointer tracker is available at
bedform/Spatial/Pointer. Imports are inert. Native drawing requires an injected surface.
Build spatial graphs with NodeEditor at
bedform/Spatial/NodeEditor or Spatial.NodeEditor.
Register static PNGs and vertical flipbooks through Canvas.Images. Builds supply a typed virtual descriptor module and stage image textures and particles into the selected resource pack, shared by Intent and spatial consumers.
Prototype-world authoring contracts are available through bedform/Prototype;
see Create and configure Prototype demonstrations for
code authoring and the planned in-game setup workflow, or the
Prototype API reference for the implemented foundation and remaining services.
bedform build packages complete add-ons with shared project configuration and
strict-aware TSX compilation. Every complete build includes the shared BedformCommon
behavior and resource packs, including content-only and single-kind builds.
See Script add-on builds for pack discovery,
script mappings and output paths, and Common packs for automatic
inclusion, staged dependencies and shared pack versions.
Features
-
Game mechanics not found in Bedrock, including:
- physics simulation
- custom models, including non-cuboid geometry
- procedurally-generated geometry
- procedural tools (like noise and statistical sampling),
-
Custom physics simulation
- 4-tick sub-stepping with smooth motion driven by per-tick animations (object transform updates 20 times per second, animation makes it look real-time)
- custom, multi-part collision of various shapes, including per-face ("complex") collision
- customizable gravity (magnitude and direction), vertical drag, and linear/angular velocity
- sub-tick rendering via animations driven by a root bone
- automatic addition of root bone to simulating models that are boneless, when you run
bedform build
-
Custom model rendering via particle systems
- allows for rendering models that previously relied on
poly_mesh - allows for non-cuboid geometry, including n-gons via masked textures, generated automatically with
bedform build - renders using ambient light (brightness)
- can have collision just like other simulated bodies
- can be used with the custom physics simulator
- automatically creates a TypeScript module that exports a
ParticleModelcontaining controls to create and manage in-game instances of your model
- allows for rendering models that previously relied on
-
@bedform/serverinput signals, allowing add-ons to subscribe to presses, holds, double-taps and tap-and-holds of Jump, Sneak and eight player-relative movement directions -
mathematical structures and utilities, including implementations of
- quaternions and rotators (Euler angles)
- matrices (4×4, useful for transformations in ℝ³)
- transforms (structures that describe a location and orientation in ℝ³)
-
functional libraries for Bedrock's
Vector2andVector3, which include operations that@minecraft/mathdoes not offer -
bedform/Voxelblock-lattice coordinates in meters, with Bedrock-compatible faces, neighborhoods, boxes and segment traversal -
bedform/Microvoxel1/16 m lattice coordinates with in-block local and index addressing -
simulated cables, with customizable stiffness, number of segments, and appearance (supporting both cuboid and flat segments)
-
custom audio at runtime (including streamed audio and audio procedurally-generated at runtime) on BDS servers that have
@minecraft/server-netvia the Bedform Sound companion app (available for free on Android, iOS, and Windows)