/mfpp

A preprocessor for Minecraft functions

Primary LanguagePerlBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

mfpp

A preprocessor for Minecraft functions

mfpp is still in alpha, planned features include improved macros, recursion, and other time-saving devices.

Syntax

Conditionals:

if (selector) <
    ...
>
else <
    ...
>

Macros:

define macroname <
    ...
>
...
<macroname>

Processing

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.