Repository navigation
Vanilla Actions.en
RigWorks reads real player state and calls the original PlayerModel pose sampler. Minecraft keeps movement, collision, item use and damage authority; these policies only change the rendered character.
VANILLA is the default. The three are separate entry points and do not always run together.
| Mode | Behaviour | What you provide |
|---|---|---|
VANILLA |
samples the Minecraft player pose and retargets it to the custom skeleton | a skinned model, correct humanoid mapping and any necessary axis calibration |
CLIPS |
selects imported clips from real player state, composes upper-body actions, and falls back to the native pose when special clips are missing | real clips and action mapping in the model; humanoid mapping is still used for fallback and held items |
SCRIPTED |
runs the selected local KubeJS controller or dedicated avatar package, which decides the composition | a controller plus the clips, mappings and solver data it uses |
Switch with /assimploader character mode vanilla|clips|scripted or in the character settings. Choosing a mode does not author animation for you: CLIPS does not run the global KubeJS player controller, and a valid SCRIPTED controller still has to request the native baseline or explicitly provide replacements. Missing or failing scripts fall back to the native pose.
MinecraftPlayerInputSampler samples an AbstractClientPlayer once per game tick. Local and remote players both use observed motion; the jump key is not read.
Air phases are grounded, takeoff, rising, apex, falling and landing. Only a real contact-to-air transition counts as takeoff — a ledge fall does not. Landing has a three-tick observation window and is interrupted by a new takeoff. The articulated native leg layer has its own contact hysteresis to avoid a one-frame straight-leg flash during repeated moving jumps.
Observed states:
| Type | States |
|---|---|
| ground movement | idle, walk, sprint, strafe, backward, crouch, crouch-walk |
| airborne and special movement | jump, fall, creative flight, elytra, climbing, Riptide |
| water and low poses | swimming, treading water, crawling on land, lava states |
| entity states | riding, sleeping, hurt, frozen, death |
| hand actions | physical left/right held items, swinging, eating/drinking and vanilla item-use poses |
Multi-joint rigs add bounded elbow/knee motion (airborne knee bend, climbing, eating). These are visual approximations and do not change player gravity, bone lengths or server collision boxes.
The production path calls controller.updateCompatible(input) and passes the returned VanillaPoseSelection to the binding's native driver. The legacy update(input) remains a single-primary-clip API for integrations that own their own complete composition.
The compatible path keeps a locomotion clip running while use/swing/hurt clips play in the character:upper-action layer. The mask contains mapped torso/arm subtrees and explicitly excludes the hips and legs. Accepted swings synchronise to Minecraft's swing generation and phase.
Missing clips:
- missing run, backward or strafe clips may reuse walk
- missing crouch, swim, elytra or death poses request the native skeleton instead of playing an upright idle
- without custom item-action clips, vanilla arm motion and held-item poses are preserved
-
landis an optional landing clip; without it ordinary movement selection continues
Additional mappable intents are crawl, crawl_idle, ladder_up, ladder_down, ladder_idle, water_idle, lava, riptide, frozen, hurt and land.
The sampler calls the original arm-pose selection, model preparation, model setup and entity rotations, so held items, item use, swimming and elytra inherit vanilla handling. Articulated rigs add bounded elbow/knee motion.
VanillaPlayerPoseDriver.renderOffset(player) reproduces the vanilla bed offset omitted by the cancelled player renderer; apply it in world coordinates, before the custom model yaw and scale.
Arbitrary hand contact, finger grip, seat contact and foot grounding still depend on calibrated model mappings and solver definitions. A native pose fallback cannot manufacture model-specific authored animation.
MinecraftPlayerInputSampler, VanillaPlayerPoseDriver, VanillaPoseRetargeter and PlayerAnimationController live under src/main/java/cn/minerealms/rigworks/character/ in the repository.
基于 AssimpLoader 的 Minecraft 玩家角色与动画系统。 A Minecraft player character and animation system built on AssimpLoader.
- Home
- Getting Started
- Blender Workflow
- Vanilla Actions
- Rig Calibration
- Animation
- Equipment
- Hand Contacts
- Scripting
- Avatar Packages
- Multiplayer Sync
- Workbench and Troubleshooting