Build from source
Layout
Section titled “Layout”The four mods are four independent Git repositories, but each Gradle build includes its siblings from neighbouring folders (../MujoCraft and so on), so they must sit side by side:
MujoVerse/├── MujoCraft/ # physics core (MuJoCo JNI)├── MujoBots/ # robots, catalogue, rendering, control API├── MinePilot/ # driving, local bridge, Python package in python/└── MineArena/ # football pitches, GameController, matchesmkdir MujoVerse && cd MujoVersefor r in MujoCraft MujoBots MinePilot MineArena; do git clone https://github.com/MujoVerse/$r.git; doneToolchain
Section titled “Toolchain”- JDK 21. On macOS (Apple silicon)
MujoCraft/scripts/setup.shdownloads Corretto 21 intoMujoCraft/.tools/jdk; elsewhere install JDK 21 and setJAVA_HOME. - MuJoCo and GameController native libraries for all three platforms are prebuilt in
MujoCraft/native/prebuilt/andMineArena/native/prebuilt/, so a normal build needs no C++ toolchain. See eachnative/README.mdto rebuild them.
cd MujoCraft && bash scripts/setup.shexport JAVA_HOME=$PWD/.tools/jdk/Contents/Home # or your JDK 21./gradlew buildcd ../MujoBots && ./gradlew buildMujoBots’ robot models, weights and catalogue meshes (about 300 MB) are not in Git. The fetchAssets task downloads the revision pinned in assets.lock.json from Hugging Face MujoVerse/mujobots-assets into hf-assets/ and checks every SHA-256.
The MujoBots build produces the core jar and three robot packs (T2, G1, exhibits) and checks every jar:
- each file has a licence entry and provenance record;
- restricted files are blocked by a hash list;
- the ONNX Runtime nested in the G1 pack carries natives for all three platforms.
Outputs land in each repository’s build/libs/.
./gradlew test # unit tests./gradlew runGametest # GameTests in a real headless Minecraft server./gradlew runClient # development clientMinePilot’s build starts its own and MineArena’s GameTest servers. With two game processes running at once, a football test that depends on physics timing can time out; use --max-workers=1.
Python package:
cd MinePilot/pythonuv venv --python 3.12 .venvuv pip install --python .venv/bin/python -e '.[test,mcp]'.venv/bin/pytest