Write a MacroKeybindMod script and run it live in your browser — no install needed. The editor highlights the DSL as you type and executes it with a faithful client-side interpreter (the same language the engine runs).
!!! note "What runs here"
The browser runs the platform-agnostic core of the DSL — control flow, variables,
expressions, %var% expansion, and the output/logging actions (log, echo,
sendmessage, set, inc, …). Minecraft-bound actions (key, look, goto, …) are
recognised and shown in the run log as [mc] key(attack) rather than actually moving a
player. It's for writing and checking script logic, exactly like an editor.
Sample:
▶ Run
Clear output
<textarea id="mm-source" spellcheck="false" aria-label="MacroKeybindMod script">$${
// Count to 5, then greet
for(#i, 1, 5);
log("tick %#i%");
next;
&who := "world";
log("hello %&who%");
}$$</textarea>
Output
| Want to… | Write |
|---|---|
| Log a line | log("text %#var%") |
| Set a number / string / flag | #n = 5 · &s := "hi" · set(flag) |
| Loop a fixed number of times | for(#i, 1, 10); … ; next |
| Loop while a condition holds | do; … ; while(#x < 10) |
| Branch | if(#hp < 5); … ; else; … ; endif |
| Modern braces | repeat 3 { … } · if x > 3 { … } |
Full language: The DSL Language · every verb: Actions.