Skip to content
westernbearPublic

About

VRM avatar mod for Minecraft Java 26.2. Use VRoid exports and other VRM 0.x/1.0 models as your local player avatar on Fabric or NeoForge, with Iris toon shading.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Celerant VRM for Minecraft

Play as your own VRM avatar in Minecraft Java. Celerant imports self-contained .vrm models from VRoid Studio or other VRM tools and uses them as your local player model in Minecraft 26.2 on Fabric and NeoForge.

Download · Installation · Try a sample avatar · Get help

Sendagaya Shino facing the camera with relaxed, open arms in Minecraft

Sendagaya Shino shown in Minecraft with BSL 10.1.8 and Celerant's Endfield toon style. Motion gallery and capture details

What you can do

  • Use a VRM 0.x or 1.0 model as your avatar in first or third person, with walking, jumping, and spring bone motion.
  • Place a VRM in the world to preview its scale, expressions, and materials.
  • Apply toon shading to your avatar with an active Iris ShaderPack, using an authored or automatically generated material profile.

Installation

Use Minecraft Java 26.2 with Java 25. Download the JAR for your loader from GitHub Releases, then put it and its dependencies in the instance's mods folder.

Loader Player download Dependencies and first launch
Fabric Celerant-Fabric-*.jar Fabric setup and dependencies. In-world, press V to open the control center and load an avatar.
NeoForge Celerant-NeoForge-*.jar NeoForge setup and dependencies. Put your avatar in celerant/models/ and load it with /celerant vrm load avatar.vrm.

These guides cover local player replacement. The standard setup works without a server plugin. See the player docs for the CC0 sample, troubleshooting, and multiplayer scope.

Model compatibility

The /celerant vrm commands also work on Fabric. Commands load relative paths under celerant/models/. The Fabric file picker supports an explicitly selected .vrm anywhere on disk.

The loader rejects directory escapes, symlink escapes, files larger than 256 MiB, and glTF assets that need external references. Humanoid-node glTF matrices are supported when they decompose losslessly to TRS; shear or singular transforms that cannot be animated safely are rejected.

Avatar mode uses the same VRM in first and third person. VRM first-person annotations hide head meshes, and Minecraft PlayerModel look, idle, walk/run, attack/item, crouch, ride, swim, and elytra poses are applied to the humanoid rig every frame. Ordinary jumps synthesize separate rising and falling joint poses from vertical velocity. A minimum of hips, spine, head, both upper/lower arms and hands, and both upper/lower legs and feet (15 joints) with a correct parent hierarchy is required.

Retargeting follows pixiv/three-vrm’s normalized humanoid design, reimplemented independently in Java/JOML. Animation deltas are converted into each bone’s parent rest space and composed onto the original rest pose; hips translation also goes through the inverse of the parent world transform so bone roll and rotated/scaled parents are preserved.

A non-zero VRM0 firstPersonBoneOffset is converted from VRM0 Z into glTF coordinates for the first-person camera anchor; zero or missing values fall back safely to the Minecraft eye position.

VRM spring bones (VRMC_springBone / VRM0 secondaryAnimation) are simulated client-side with the UniVRM / three-vrm Verlet reference (rest-axis stiffness, gravity, drag, length constraint, sphere/capsule colliders); toggle under OneConfig Motion → Spring bone. Vanilla armor, held-item, cape, and elytra render layers are hidden in avatar mode to avoid duplicate meshes, while those poses still drive the VRM rig.

ToonShader and ShaderPack boundaries

Celerant does not modify, store, or redistribute ShaderPack ZIPs, original GLSL, Iris-transformed programs, or G-buffer attachments. After Iris finalizeLevelRendering, MCglTF’s separate ToonShader renderer draws selected VRM primitives into its own HDR color/depth targets, compares against ShaderPack scene depth, and composites onto the main color target with premultiplied alpha. There is no branching on pack name, archive hash, or per-pack thresholds, and unknown ShaderPack storage formats are never guessed with a codec.

Ordinary MCglTF users keep the standard glTF/MToon path. Only models Celerant explicitly requests with RenderedGltfModel.MTOON_OVERLAY_REQUEST enter the ToonShader queue, so MCglTF as a whole is not turned into a toon-only renderer. When ShaderPacks are off, MCglTF’s existing managed MToon pass is used.

If a model.vrm.toon.json v2 sidecar is present, you can author per-material or per-mesh-primitive LightMap/ramp data, separate face LightMap and shadow SDF with head forward/right, authored or explicitly generated smooth normals, normal-map tangents, metal/non-metal specular and matcap, emission, blush, depth rim, outline width texture/vertex alpha/distance scale/per-material color, and base/outline screen offsets. Celerant attempts derivation when loading a model without a sidecar. If derivation fails, standard MToon materials use the neutral fallback. See the Optional ToonShader sidecar section in the MCglTF README for the schema.

Deriving sidecar data for any VRM

scripts/vrm_toon_assets.py writes a v2 sidecar and its LightMap, face SDF, ramp, and matcap textures for an arbitrary VRM, with nothing keyed to a model or to material names. The face material is taken from the mesh the VRM blink and vowel expressions drive, the head is separated from the body by the head-bone skin weights that the specification's first-person auto rule uses, and forward/right follow the VRM coordinate table, which is -Z/+X for VRM 0.x and +Z/-X for VRM 1.0. Where a model carries no expressions, the head-attached surface facing furthest forward is used instead, and a humanoid map that points head at a leaf joint is repaired to the joint that actually carries the eye, hair, and jaw joints. When no face can be identified at all, the facial SDF path is left unconfigured and reported rather than approximated with a generic effect.

scripts/check_vrm_corpus.py runs that derivation across directories of models and fails if a character's face cannot be found, if the two face SDF channels stop being complementary, if a ramp runs light-to-shadow instead of shadow-to-light, or if the lit sweep stops following the character's right axis in object space. Feature-test scenes that are not avatars are reported as skipped rather than as misses.

python3 -m venv .venv && .venv/bin/pip install pillow numpy
.venv/bin/python scripts/vrm_toon_assets.py /absolute/path/model.vrm
.venv/bin/python scripts/check_vrm_corpus.py /path/to/vrms --build /tmp/out

When a validated VRM has no sidecar, MCglTF derives the profile and its textures off the render thread and writes them beside the .vrm. If a profile already exists, Celerant reuses its textures and applies the configured Toon style on load. Styles tune numeric shader fields from the baseline recorded in the profile. The options are genshin (default), zenless-zone-zero / zzz, and endfield. Generate Toon assets under Rendering can retry derivation and reports when no face material was identified.

The offline script estimates the face shape from horizontal slices of the mesh. Automatic generation uses the face SDF algorithm in the installed MCglTF version. Both generators produce v2 profiles.

Users must verify the licenses and terms of their VRM models and installed ShaderPacks themselves.

Celerant is distributed under AGPL-3.0-only per the repository LICENSE.

Building from source

Local builds use MCglTF multiloader JARs.

./gradlew buildAll \
  -PlocalMcgltfApi=/path/mcgltf-api-26.2-26.2-2.4.0.jar \
  -PlocalMcgltfCommon=/path/mcgltf-common-26.2-2.4.0.jar \
  -PlocalMcgltfFabric=/path/MCglTF-Fabric-26.2-2.4.0.jar \
  -PlocalMcgltfNeoForge=/path/MCglTF-NeoForge-26.2-2.4.0.jar

CI downloads the same artifacts from the MCglTF GitHub Release or builds mcgltf-common if the artifact is unavailable.

Public API

Other mods can compile against celerant-api and depend on the loader JAR at runtime.

CelerantApi.get().localAvatar().ifPresent(handle -> { /* ... */ });

See the API documentation for Gradle coordinates and public types.

Support

Start with troubleshooting. Search GitHub Issues or report a bug. See contributing and the security policy for other ways to help.

Testing

On Linux, the full user flow runs against a real Fabric client, OneConfig, Iris, and Sodium under llvmpipe. The client GameTest opens the OneConfig screen with the real V binding, finds control coordinates from the Compose accessibility tree, then drives categories, file picking, numeric/text/slider/switch controls, every action button, and screen re-entry with mouse and keyboard. Invalid/valid file loads, placement, scale, expressions, avatar mode, Motion (L3/breathing/sway/spring), Multiplayer upload-without-plugin and cache clear, radial menu (B), first-person vanilla arm cancel, status, toon toggle, and unload are asserted via runtime status, mixin probes, and OneConfig notifications. In headless environments the real file-picker button is clicked and only the OS native dialog return value is replaced by a test mixin; the requested title and *.vrm filter are still checked. OS-level captures of the X11 world and control-center frames confirm the UI changes at least 40% of the window. Closing the screen must leave the Iris pipeline and ShaderPack intact.

The same client GameTest renders the same VRM with ToonShader ON/OFF/restored ON from a fixed camera. Scene and model bounds must hold, and at least 30% of model pixels that are stable across both ON frames must change only in OFF.

xvfb-run -a -s "-screen 0 1280x720x24" ./gradlew :fabric:runClientGameTest --offline

NeoForge smoke harness (platform + ToonShader toggle):

xvfb-run -a -s "-screen 0 1280x720x24" ./gradlew :neoforge:runClientGameTest -PirisRuntime=true --offline

Test VRMs and ShaderPacks are created dynamically in the run directory and are not shipped in the release JAR. When a local model is set, a same-named .toon.json and referenced PNGs are copied into the test run directory only.

Local VRM daylight toon rendering takes a model path from an environment variable, asserts near-noon ON/OFF/restored ON pixels, and captures 1280×720 front/back, first-person, walk, and jump rising/falling frames at morning (0), noon (6000), dusk (12500), and night (18000). That path keeps copyrighted models out of CI while still allowing local visual approval of real materials and style; it does not replace the synthetic VRM CI assertions above.

CELERANT_VISUAL_VRM=/absolute/path/model.vrm \
xvfb-run -a -s "-screen 0 1280x720x24" ./gradlew runClientGameTest --offline

Comparison images land in build/run/clientGameTest/screenshots/; the model is deleted when the test ends. Local VRM/toon images are not part of the release artifact; only the two synthetic OneConfig screen captures are uploaded as main/PR CI artifacts.

ShaderPack matrix

Run each ShaderPack in a fresh, memory-capped Minecraft process. The runner records the source and copy hashes, Iris state, entity program count, and 12-frame median/p95/p99 times. It archives the TSV, screenshots, and log under build/toon-evidence/ before the next pack runs.

CELERANT_VISUAL_VRM=/absolute/path/model.vrm \
CELERANT_TOON_STYLE=endfield \
./scripts/toon-run-pack.sh /absolute/path/ShaderPack.zip

As of 2026-08-25 on Iris 1.11.2 / MCglTF 2.3.2.8, the current Modrinth 26.2-compatible BSL R10.1.3, Complementary Reimagined r5.8.1, and Complementary Unbound r5.8.1 packs were inspected directly with a local validation VRM and each pack active. Height-matched comparisons against the official UnityGenshinToonShader images, ON/OFF/restored frames, opposed face lighting, and native plus 4× nearest-neighbour crops all passed the face SDF, material ramp, smooth normal, outline, rim/specular, and compositing gates after the Unity-aligned outline path and geometry-based blush/eye placement landed. All three packs kept source SHA-256 intact, patched_entity_programs=0/9, and restored pixel stability 1.000. llvmpipe 1280×720 ON/OFF median frame times were BSL 753/785 ms, Reimagined 624/580 ms, and Unbound 716/630 ms. Those are software-renderer numbers, not real-GPU performance. Shipped README and example images use only the CC0 Sendagaya Shino sample under docs/examples/sendagaya-shino/; copyrighted models stay in local-only validation runs.

Local MCglTF builds override Maven during capture and GameTest:

./gradlew :fabric:runClientGameTest --offline \
  -PlocalMcgltfApi=... -PlocalMcgltfCommon=... -PlocalMcgltfFabric=...

CI and releases

The main branch and pull requests run :common:test, :fabric:runClientGameTest, and :neoforge:runClientGameTest. Create a release from a clean, synced main branch:

./scripts/release.sh 26.2-1.3.0

The Release workflow for v* tags builds and tests each loader in parallel jobs, uploads separate Actions artifacts (celerant-fabric-*, celerant-neoforge-*, celerant-api-*), then publishes the main Celerant-Fabric, Celerant-NeoForge, and celerant-api JARs (no sources/javadoc) with SHA-256 checksums on the GitHub Release.

About

VRM avatar mod for Minecraft Java 26.2. Use VRoid exports and other VRM 0.x/1.0 models as your local player avatar on Fabric or NeoForge, with Iris toon shading.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages