Skip to content

Box3JSJS/TS Scripting Engine for Minecraft

Build custom gameplay, mini-games, and UIs — no JDK, no Java compilation required.

Quick Start

bash
# In-game: create a new project
/box3script create mygame

# Build and watch
cd config/box3/script/mygame
npm install
npm run build -- --watch

# TypeScript type checking
npm run check
ts
// src/server/app.ts — your first script
world.onChat((entity, message) => {
  if (message === "!hello") {
    entity.player.directMessage(`Hello, ${entity.player.name}!`);
    return false;
  }
  return true;
});

Read full docs →

Version Info

ComponentVersion
Minecraft1.21.1
Mod LoaderNeoForge
Java21
JS EngineMozilla Rhino 1.9.1 (ES5)
TypeScriptvia Babel → ES5

Released under the MIT License.