Getting Started
Try Online (No Install)
The fastest way to try RedScript is our online IDE:
Write code, see output instantly. No installation required.
Install VSCode Extension
For the best development experience:
- Open VSCode
- Search for "RedScript" in Extensions
- Install RedScript for VSCode
Features:
- Syntax highlighting
- Auto-complete for 50+ built-in functions
- Hover documentation
- Error checking
- Code snippets
Install CLI
For command-line compilation:
bash
npm install -g redscript-mcVerify installation:
bash
redscript --versionYour First Program
Create a file called hello.mcrs:
rs
@load
fn init() {
say("Hello, RedScript!");
}Compile it:
bash
redscript compile hello.mcrs -o ./my-datapackCopy my-datapack to your Minecraft world's datapacks folder, then run /reload in-game.
Next Steps
- Variables & Types — Learn about data types
- Functions — Define reusable logic
- Decorators —
@tick,@load,@on_trigger