A preprocessor for Minecraft functions
mfpp is still in alpha, planned features include improved macros, recursion, and other time-saving devices.
Conditionals:
if (selector) <
...
>
else <
...
>
Macros:
define macroname <
...
>
...
<macroname>
To process the file <input>
, do:
perl mfpp.pl <input>
Once mfpp finishes executing, copy the main function file, <input>.mcfunction
, anywhere in the world's function folder, and copy the auxiliary files (<input>.<some number>.mcfunction
) into the world's mfpp
namespace.