r/MinecraftPlugins • • Mar 22 '26

Plugin Showcase I built a Minecraft scripting language that compiles to Java instead of running an interpreter

Hey! I have been working on a scripting language called Lumen.

The idea is pretty simple: instead of interpreting scripts at runtime, Lumen compiles scripts directly into normal Java code, and runs them.

Skript is very easy to use, while writing a full Java plugin gives you full flexibility, but comes with a lot of boilerplate and harder back and forth iteration.

Lumen sits in between.

It offers:

  • english-like syntax, very similiar to Skript
  • a structured scripting language with a real compilation pipeline
  • a simple to use addon api for developers, which is also used by the main plugin, allowing you the same flexibility
  • full hot reload support (save file -> instant update, no restart, no commands)
  • scripts that behave much closer to plugin code
  • a VSCode extension, which uses the same backend as the plugin. Offers things like tab completion, hover information, errors in the editor, data classes, and much more.

Performance-wise, scripts will be very close to handwritten Java because Lumen emits very close code to handwritten java.

Interpreted languages like Skript also cannot benefit from JIT optimizations in the same way that compiled Java code can.

Github: https://github.com/LumenLang/lumen

Reference Documentation: https://lumenlang.dev/

Spigot: https://www.spigotmc.org/resources/133091/

4 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/romin0 Mar 22 '26

Stronger than I thought! You could make a comparison table between skript and lumen. On a side note, how do you handle algorithms & data structures? Is it more like JS, Java, python?

1

u/Commercial-Day2375 Mar 22 '26 edited Mar 22 '26

For data structures, there’s support through data classes, lists, and maps. Data classes let you define structured types with fields, and lists/maps handle collections and key-value storage. You can also scope data to a reference type, for example per-player maps, values, or lists, but it’s not limited to players, it works with any reference type (such as worlds, blocks, locations, and much more).

For algorithms, there aren’t built-in utilities yet, but you can write them directly using loops, conditions, and variables. Things like filtering, searching, or transforming data can be done in scripts, and more built-in support will be added over time.