Skip to content

Avatar Packages.en

Claude Code edited this page Nov 20, 2026 · 2 revisions

Avatar Packages

中文 · English

After importing a character, RigWorks edits model override configuration inside AssimpLoader's same workbench. FBX, meshes and textures remain source assets; transforms, nodes, materials, sockets, character parameters and action scripts are saved as independently importable overrides. Export never rewrites the FBX.

Copy identity

Every character copy has a stable UUID, and the profile and script author folders are isolated by it:

profile: rigworks:avatars/<uuid>/profile.json
scripts: kubejs/rigworks/avatars/<uuid>/

The copy UUID does not change with script content. The manifest version is a file-format version; the content SHA-256 changes with the scripts or the copy identity. Two copies may reference the same FBX while keeping their own profile, transform overrides and scripts; applying one copy does not modify another.

Character configuration lives in config/rigworks/characters/<SHA-256 of profile ID>.json, config/rigworks/profiles.json holds the enumerable IDs, and config/rigworks/assets.json maps model IDs to the FBX inside the workbench. Remote players' download caches are not added to the local editable character list.

Importing a ZIP

Importing a RigWorks-marked character ZIP — through generic Import, Open, drag-and-drop or the RigWorks entry — first asks:

  • Create an independent copy — allocates a new UUID, profile and script folder; identical content still does not share editable configuration.
  • Update the archive's existing copy — updates the original. Identical script content is reused; differing content then asks whether to replace that copy's scripts, import as a new copy, or keep the local scripts.

Opening an already saved local project keeps its identity. Cancelling restores the previous editor session and removes the newly unpacked project directory. A bare FBX only gains a character profile and [RigWorks] editing through RigWorks' Import avatar.

Export options

Model files and PBR textures are required in the ZIP; everything else is ticked individually in the export dialog:

Option Contents
Rig and animation setup humanoid bone mapping, action-to-clip mapping, rig solver/IK/morph and other character settings
Equipment and hand transforms left/right mounts, grip rules and equipment IK
Character root transform position, rotation and scale overrides for the character root
Physics and runtime options body rigid bodies, joints and runtime switches
KubeJS avatar scripts this copy's manifest, mappings and all JSON/JS scripts

Unticked optional data does not enter the ZIP. Unticking KubeJS also removes the script snapshot from the project metadata and archive, so stale scripts cannot survive a re-import.

.instance.json is AssimpLoader's generic instance sidecar discovered with the model resource, not RigWorks' equipment.json. The states, generic sockets, foot IK, springs and interpolation it defines are not replaced by RigWorks' held-item mounts.

The ZIP format is manifest.json + project.workbench.json + assets/ + extensions/ — not a Minecraft resource pack — and is imported again through the workbench.

Resource pack layout

The legacy resource pack path keeps working, with character resources under assets/<namespace>/models/...:

pack.mcmeta
assets/example/models/character/avatar/
  profile.json
  model.fbx
  model.instance.json
  equipment.json
  rig.json
  physics.json
  textures/...

Resources are referenced with standard IDs such as example:models/character/avatar/profile.json. The character selection page discovers these profiles through the resource manager and shows them merged with locally imported characters.

When such a model enters the workbench, AssimpLoader copies its dependencies and writes a <model name>.resources.json mapping the original namespace IDs to files inside the project; RigWorks declares the profile, equipment, rig/IK and physics dependencies through the extension API. Import prefers these authored configurations and does not re-guess calibrated bones and action mappings.

Default character files

Default configuration in src/main/resources/assets/rigworks/models/character/block_player/:

File Purpose Runtime status
profile.json character entry: model resource, humanoid bones, animation mapping, and resource references for rig, physics and equipment required; read on selection and load
equipment.json left/right mounts and bow/crossbow grip and two-handed IK rules active; shared configuration can override defaults
physics.json body rigid bodies, collision shapes, masses, joints and springs active, but the physics modifier is only created when character physics is enabled
rig.json bone append, IK, morphs, combined actions and procedural motion active; left_leg_probe is disabled by default and solver_probe needs an explicit script or debug command
block_player.instance.json AssimpLoader generic instance states/animation mapping, attachments, foot IK, hair springs and render interpolation discovered by AssimpLoader from the model resource

These are the mod's built-in default templates, not source files rewritten by every edit. Edit results live in the workbench project and RigWorks' visual override data; exporting a ZIP is what packages the currently selected edits and assets.

Multiplayer distribution

Upload and "display other characters" are client switches, and the server also needs RigWorks. The server stores configuration revisions per player UUID and distributes character configuration and script packages — never FBX or textures. Recipients use per-player validated caches and runtimes; remote scripts are not written into local author folders and never installed into client_scripts. Two players using identical model files still have independent owner identities and active configurations.

See Multiplayer Sync for details.

Clone this wiki locally