Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Home

    Plugin API

    Write plugins for Basalt in TypeScript or JavaScript.

    2 min read · 5 sections
    On this page

    Basalt plugins are behaviour packs with scripts. They run against Basalt’s port of the @minecraft/server API, so most scripts written for vanilla work as they are, and Basalt adds a few modules and methods of its own.

    Your first plugin goes from an empty folder to a running plugin. The search box at the top of the sidebar finds any class, method, property or event by name.

    Each guide covers one area, with working examples in TypeScript.

    The reference is generated from Basalt’s typings. The typings follow Mojang’s API closely and declare more than Basalt implements; Differences from BDS lists what is missing.

    Drop the plugin’s folder, with its manifest.json and scripts/, into plugins/.

    TypeScript typings for every module ship with Basalt in typings/, and Basalt writes them into plugins/node_modules on every start. The reference pages here are generated from them.