Skip to content

MCFPP Examples ​

Each numbered directory is a standalone project. Start with a 26.3-capable MCFPP development build and JDK 25.

sh
git clone https://github.com/MinecraftFunctionPlusPlus/MCFPP_Example.git
cd MCFPP_Example/01-language-basics
mcfpp build
mcfpp test --dsb-jar /path/to/datapack-sandbox-cli.jar

Replace the JAR path with your DatapackSandbox CLI. Source tests run in DSB. To run the first pack in game, copy build/basics into the world’s datapacks directory, then run /reload and /function showcase.basics:main. Expect sum=15, factorial=120 and 2.5 in chat.

In IDEA, open the numbered directory containing mcfpp.toml. Start at 09 for breakpoints or 07 for animation preview. In VS Code, open the repository’s examples.code-workspace.

Example repository · Build the compatible DSB runtime

Language and data ​

Entities and game resources ​

Testing, extensions and the editor ​