ShadowUI 使用文档

Appearance body adapters — model schema 34

状态待核对Minecraft 1.21.10 · Forge / Bukkit
本页目录

本文对应 1.21.10 现代框架。文档中的接口与配置按当前文档快照核对;完整框架仍在开发验收。接口可编译、配置可解析与游戏内效果验证分别记录。

Decision: ADR-049(源码配套资料). Requires model_bindings_v2, model_appearances_v33 and model_appearance_bodies_v34 when any appearance uses a body other than the existing GLB default.

The schema 33 appearance declaration gains optional bodyRenderer:

Value Body resource Anchor contract
glb (default) Namespaced models/*.glb Existing exact GLB joints and calibration
bbmodel Namespaced models/*.model.json with matching backend Exact joints in the prepared source asset, current body pose
bedrock Namespaced models/*.model.json with matching backend Exact joints in the prepared source asset, current body pose
native_biped Omitted head, body, rightArm, leftArm, rightLeg, leftLeg

Native slots use mode: rigid and upperCalibration; segmented limbs and declared world rest anchors do not describe the native rigid biped and are rejected. Fixed calibration applies in the selected part's local attachment frame. AW coordinates remain pixels, converted by the adapter once. Native pose/size/root belong to the platform. Source players continue to use the existing explicit rest/calibration grammar.

bodyRenderer is a whole-value patch field. bodyResource: null removes a resource when switching to native; source/GLB types require a valid matching resource. Patch renderer and resource together when switching type. Existing appearance bind/patch/unbind/query and configured actions are unchanged. Existing GLB JSON omits the new field and retains its schema 33 representation.

The declaration selects the compatible currently rendered body; it does not install a player model. Missing/incompatible bodies suspend drawing. Multiple owners remain independent. Resource/backend/joint failure retains the prior applied declaration. Native body hiding applies only while all slots can be captured; native armor, hands and unrelated appearance owners retain their own lifecycle. Resource transition, clear, owner release and disconnect use the existing fences and cleanup.

Native, migration and full view/format acceptance are separate entries in the delivery ledger. Synthetic item appearances remain required follow-up work.