jmc icon indicating copy to clipboard operation
jmc copied to clipboard

[FEATURE_REQUEST] Add an expression calculation

Open WingedSeal opened this issue 10 months ago • 1 comments

$a = ($b + $c) - 5

WingedSeal avatar May 02 '24 20:05 WingedSeal

Hmm, maybe we could have a multi-step rewrite for this? (just an idea I thought of for how the code would work)

So it would first turn that into

$a = $b + $c;
$a -= 5;

and then

$a = $b;
$a += $c;
$a -= 5;

and then turn it into mcfunction.

Nico314159 avatar Sep 02 '24 19:09 Nico314159