Overview of the Dash compiler
com.mojang folder.website·Indexed 31 days ago
https://bridge-core.appDocumentation for bridge. v2, a development environment for Minecraft Bedrock Add-Ons. Includes guides on project types, Molang files, and the Dash compiler, as well as comprehensive API references for extension developers using modules such as @bridge/ui, @bridge/project, @bridge/monaco, and @bridge/utils.
com.mojang folder.Dash commands allow users to generate Minecraft commands programmatically using JavaScript or TypeScript. They integrate into bridge. by appearing in auto-completions within .mcfunction or JSON files.
Critical Constraint: Dash commands cannot be used directly within the Minecraft game client; they are only usable within project files inside the bridge. editor to generate standard Minecraft commands.
Dash includes several built-in plugins for add-on development:
formatVersionCorrection: Ensures format versions work within JSON files that Minecraft would otherwise reject.simpleRewrite: Handles file rewriting for development and production builds.rewriteForPackaging: Prepares files for packaging into .mcaddon, .mctemplate, or .mcworld formats.molang: Manages Molang file locations and minification.customCommands: Manages custom command locations in JSON.generatorScripts: Enables the use of generator scripts.Dash commands allow developers to generate Minecraft commands programmatically using JavaScript or TypeScript. They integrate into bridge.'s auto-completions within .mcfunction or JSON files.
Critical Constraint: Dash commands cannot be executed directly within the Minecraft game client; they are only usable within project files during development to generate standard Minecraft commands.
bridge. extensions allow for deep customization of the application. Key capabilities include:
com.mojang folder.@bridge/persistent-storage module provides methods to handle persistent data storage using IndexedDB (idb). Note that data stored via this module can be lost if the user clears their site data in browser settings.import { save, load, delete } from "@bridge/persistent-storage";bridge. provides dynamic auto-completions and validation in both the text and tree editors. Key features include:
format_version and project config experimental toggles.development_behavior_packs and development_resource_packs folders within the com.mojang directory. This allows changes made in bridge. to appear automatically in Minecraft. This feature requires Minecraft Bedrock to be installed on a computer; it is not available on mobile devices.