bedrock‑tools.dev
Discord

Molang playground

in your browser

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

Result
-

Cheat sheet

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

math (angles in degrees): abs acos asin atan atan2 ceil clamp copy_sign cos die_roll die_roll_integer exp floor hermite_blend inverse_lerp lerp lerprotate ln max min min_angle mod pi pow random random_integer round sign sin sqrt trunc

Easing math.ease_in_, ease_out_, ease_in_out_ + back bounce circ cubic elastic expo quad quart quint sine, as (start, end, 0_to_1)

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

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

Runs the bridge-core Molang engine in your browser, with the game’s missing math functions added. Names and argument counts are checked against the game’s own list.

Try:

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 or query.position(1) = 5 for a query that takes arguments, to test the expression under the conditions you care about; anything left unset counts as 0. Every math function of the game works, easing included, and names and argument counts are checked against the game's own list, so a typo in a query is pointed out instead of quietly reading 0. A broken expression says what is wrong and where, a graph shows how the value changes over anim_time or any other name, and the address keeps the expression for sharing. It all runs in your browser.