Skip to content

JaylyDev/ScriptAPI

Repository files navigation

ScriptAPI Samples

This repository is filled with community driven script samples for Minecraft Bedrock Script API.


🔴 USE stable not main 🔴

Check out the stable branch from here: https://github.com/JaylyDev/ScriptAPI/tree/stable. The main branch is used for script development for Minecraft Preview and may often be in a broken state.


Community driven scripts that use Script API to do all kinds of crazy stuff in Minecraft.

Important

Some scripts might use API modules that are only enabled in specific runtime environments, including:

@minecraft/server-net and @minecraft/server-admin: Modules that can only be used in Bedrock Dedicated Servers.

@minecraft/vanilla-data and @minecraft/math: These are external Minecraft libraries published to NPM. They are not part of Minecraft's native modules.

There are two ways to use external Minecraft libraries in behavior pack scripts:

  1. Standalone file

    Download standalone files available from https://jaylydev.github.io/scriptapi-docs/meta/useful-links.html for quick, small-scale projects.

  2. Bundling

    Installing it through npm, with advanced build configurations and bundling with esbuild:

    npm i @minecraft/math
    npm i @minecraft/vanilla-data

Guide on bundle Minecraft Scripts with the following bundlers:

Community driven editor extensions samples for editing Minecraft worlds. Only available on Editor projects in Minecraft Editor.

Highly recommend checking out Mojang's editor extension starter kit if you're experimenting with editor API for the first time!

Documentation

Check out the following links for Script API documentation:

Contributing

Please contribute to this repository if you can. Check out Contributing Guidelines for more infomation.

License

This project is licensed under the MIT license.

Copyrights on the script files are each contributor listed at the beginning of each script file.