Freedom251 › Minecraft Datapack Generators
RedScript

What RedScript is
RedScript is a typed language and toolchain for creating vanilla Minecraft datapacks, compiling source code into .mcfunction output. The project says the resulting datapacks run without mods, and provides an online playground for writing code in a browser and downloading a datapack. Language constructs include variables, functions, control flow, structs, enums, Option and Result, f-strings and modules. Minecraft-specific support includes load and tick handlers, selectors, and command helpers. The toolchain includes compilation, type checking, optimization, datapack emission, formatting, linting, testing and watch mode. Its language server and VS Code extension offer diagnostics, completion, hover details, navigation, snippets and syntax highlighting. Resource declarations can be typed, and JSON or NBT contributions from files have collision checks and deterministic directory or ZIP output. Static checks can flag Minecraft command issues, but the project cautions that they do not verify live Paper behavior. Dimension and dimension_type resources require reopening the world. RedScript is MIT-licensed.
Who it suits
RedScript suits people building Minecraft datapacks, particularly those working on larger projects who want a typed language and supporting development tools. It can also suit users who prefer to try code in a browser playground.
What it does well
- Compiles typed code into vanilla .mcfunction datapacks.
- Online playground supports browser-based authoring and download.
- VS Code extension includes diagnostics and autocomplete.
- Toolchain includes a formatter, linter and test runner.
- Outputs can be deterministic directories or ZIP files.
What to know first
- Static diagnostics do not prove live Paper behavior.
- Dimension and dimension_type resources require reopening the world.
- CLI installation uses npm.
Limits
Static Minecraft command diagnostics do not establish behavior on a live Paper server. Dimension and dimension_type resources require reopening the world; normal resources and structure NBT are described as reloadable under the project's Paper 1.21.4 lifecycle evidence.
Getting started
- Open the online playground to write code in a browser and download a datapack.
- Or install the CLI with npm install -g redscript-mc.
- Use the compiler and datapack emitter to create .mcfunction output.
- Add the VS Code extension or use the language server for editor support.
- Run the available formatter, linter, test runner, and Minecraft-aware validation tools.
Verdict
RedScript offers a broad coding toolchain for vanilla datapack development, with editor integration and resource authoring alongside compilation. Its static checks have a stated limit, and some resource changes require reopening the world.
Questions
Does RedScript cost anything?
RedScript is free and open source under the MIT License.
Can I use RedScript in a browser?
Yes. Its online playground lets you write code in a browser and download a datapack.
What does RedScript generate?
It compiles code to .mcfunction and supports generation of functions, recipes, loot tables, advancements, and predicates.
Which editors are supported?
The project lists an LSP and a VS Code extension with diagnostics, completion, hover information, go-to-definition, snippets, and syntax highlighting.
Do RedScript datapacks need mods?
The project says its datapacks run without mods.
What are the validation limits?
Static command diagnostics do not prove behavior on a live Paper server. Dimension and dimension_type resources require reopening the world.
Facts from RedScript's own pages
- CLI installation
- The README gives `npm install -g redscript-mc` as the CLI installation command. · github.com, 3 Oct 2026
- Compiler tooling
- The toolchain includes a compiler, type checker, optimizers, datapack emitter, formatter, linter, test runner, and watch mode. · github.com, 2 Oct 2026
- Editor integration
- The VS Code extension provides syntax highlighting, real-time diagnostics, hover information, go-to-definition, autocomplete, lint warnings, and code snippets. · marketplace.visualstudio.com, 3 Oct 2026
- Editor support
- The project lists an LSP and VSCode extension with hover documentation, go-to-definition, completion, diagnostics, snippets, and syntax highlighting. · github.com, 2 Oct 2026
- Intended users
- The project describes its tooling as intended to help maintain larger datapacks. · github.com, 3 Oct 2026
- Language features
- The language includes variables, functions, control flow, structs, enums, Option and Result, f-strings, and modules. · github.com, 3 Oct 2026
- License
- The repository says RedScript is released under the MIT License. · github.com, 3 Oct 2026
- Minecraft features
- Minecraft integration includes load and tick handlers, selectors, and helpers for commands such as title, kill, and particle. · github.com, 2 Oct 2026
- Minecraft tooling
- The toolchain includes a compiler, optimizer, CLI, language server, formatter, linter, test runner, and Minecraft-aware validation. · github.com, 3 Oct 2026
- No-mod output
- The project says its datapacks run without mods. · github.com, 3 Oct 2026
- Online playground
- The browser playground lets users write code and download a datapack. · github.com, 3 Oct 2026
- Purpose
- RedScript is a typed language and toolchain for building vanilla Minecraft datapacks that compile to .mcfunction. · github.com, 3 Oct 2026
- Resource authoring
- RedScript supports typed resource declarations and from-file JSON/NBT contributions, with collision checks and deterministic directory or ZIP output. · github.com, 2 Oct 2026
- Resource limit
- The README says dimension and dimension_type resources require reopening the world, while normal resources and structure NBT are reloadable according to its Paper 1.21.4 lifecycle evidence. · github.com, 3 Oct 2026
- Standard library
- The standard library includes modules for math, vectors, random generation, particles, inventory, scheduling, and ECS-style helpers. · github.com, 3 Oct 2026
- Support
- The repository links to documentation, a playground, a VSCode extension, an npm package, and contributing instructions. · github.com, 2 Oct 2026
- Type safety
- The documentation says RedScript catches errors at compile time, before they occur in-game. · redscript-docs.pages.dev, 2 Oct 2026
- Validation
- The project describes static Minecraft command checks and optional Paper/TestHarness integration tests, and says static diagnostics do not prove live Paper behavior. · github.com, 2 Oct 2026
- Validation limit
- The README describes static command diagnostics and says they are not proof from a live Paper server. · github.com, 3 Oct 2026
Where RedScript stands on Freedom251
- Minecraft Datapack Generators#12 of 22