Skip to content
yuzhe edited this page Mar 12, 2026 · 2 revisions

RedScript Wiki

Welcome to the RedScript wiki — a compiled, typed scripting language that targets Minecraft datapacks.

Pages


RedScript compiles .rs source files to optimized .mcfunction datapacks (or NBT structure files) for Minecraft 1.21+.

@tick(rate=20)
fn every_second() {
    let hp: int = scoreboard_get(@s, "health");
    if (hp <= 0) {
        respawn_player();
    }
}

→ See Getting Started to install and write your first script.

Clone this wiki locally