-
Notifications
You must be signed in to change notification settings - Fork 0
Home
yuzhe edited this page Mar 12, 2026
·
2 revisions
Welcome to the RedScript wiki — a compiled, typed scripting language that targets Minecraft datapacks.
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.