Skip to content

JaylyDev/ScriptAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fda8df9 Â· Apr 3, 2025
Oct 15, 2024
May 26, 2024
Apr 3, 2025
Oct 15, 2024
Feb 13, 2022
Jun 30, 2023
Jan 1, 2025
Aug 8, 2022
Jan 1, 2025
Jun 20, 2023
Apr 3, 2025
Apr 3, 2025
May 26, 2024
Oct 15, 2024

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 jaylydev.github.io 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:

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.