bedrock‑tools.dev
Discord

Molang playground

your files

Type a Molang expression and see what it evaluates to, with a variable environment and syntax-error checking.

Try:
-

Cheat sheet

Namespaces: query./q., variable./v., temp./t., context./c., math.

math (angles in degrees): sin cos abs floor ceil round trunc sqrt pow exp ln mod min max clamp lerp lerprotate random random_integer die_roll

Operators: + - * / · < > <= >= == != · && || ! · ternary a ? b : c · null-coalesce a ?? b · assign t.x = …

Keywords: return, loop, for_each, break, continue; statements separated by ;

Runs the real bridge-core Molang engine locally. query.* values come from the game in-engine - set them above to test. It evaluates and catches structural errors, but isn’t a full static analyzer.

Type a Molang expression and its value updates as you type. Set query, variable, temp and context values one per line, such as query.anim_time = 1.5, to test the expression under the conditions you care about; anything left unset counts as 0. It runs the bridge-core Molang engine in your browser, so math functions, ternaries, ?? and multi-statement expressions with return all work, and a broken expression shows its error.