Skip to content

Equipment.en

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

Equipment

中文 · English

equipment.json

The optional equipmentDefinition character-profile resource selects physical right/left hand mounts. Without it, mounts default to the profile's right_hand and left_hand humanoid bindings and their reference rotations.

{
  "version": 1,
  "enabled": true,
  "right_hand": {
    "node": "Hand.R",
    "position": [0, 0.055, -0.125],
    "rotation": [0, 0.70710678, -0.70710678, 0],
    "scale": 1
  },
  "left_hand": null
}
  • position is a metre offset along the posed bone's rigid axes; imported FBX bone scale is removed before the offset is applied.
  • rotation is a normalised local quaternion [x,y,z,w]; scale controls the displayed vanilla item size.
  • The character profile scale still applies to the whole character and its equipment.
  • right_hand / left_hand are physical hands. The player's dominant-hand setting decides which physical mount receives the main-hand stack; the offhand uses the other.
  • enabled:false suppresses equipment; an omitted or null mount suppresses that physical hand.
  • The renderer receives the same immutable interpolated PoseSnapshot used for the character mesh. It does not read the later simulation pose, advance time or modify inventory.

This path replaces only the local third-person world held-item layers. Armor, capes, elytra geometry, first-person arms, inventory previews and per-item custom grip poses are separate work. Server inventory, entity dimensions, collision, reach and damage authority are unchanged.

Named sockets and rules

Version-1 right_hand, left_hand and grips definitions remain valid. Named sockets and ordered overrides are optional, and the first matching override wins. Arm names always mean physical left/right, independent of the main-hand choice.

{
  "version": 1,
  "right_hand": {"node": "Hand.R"},
  "left_hand": {"node": "Hand.L"},
  "sockets": {
    "spyglass": {"node": "Head", "position": [0, 0, 0.08]},
    "back": {"node": "Chest", "position": [0, 0.2, 0]}
  },
  "overrides": [
    {"arm": "right", "items": ["minecraft:trident"], "states": ["using"],
     "contexts": ["third_person_right_hand"],
     "mount": {"node": "Hand.R", "position": [0, 0, -0.1]}}
  ]
}

Rules accept items, tags, states (held, using, charged), use_animations and contexts. Item and tag selectors are alternatives; other non-empty selectors must all match. Each rule declares one named socket or an inline mount. Empty selectors accept anything. Offsets are metres; imported FBX bone scale does not change item size.

An active spyglass uses the head frame and the native HEAD display context, including the native side offset and default pitch limit. Declaring an explicit spyglass socket makes it the final item frame and suppresses that default offset.

In-world equipment transform workbench

Load and enable a custom character, then press Ctrl+H (rebinding is in Minecraft Controls). Other entries are /assimploader character equipment and [RigWorks] Equipment > Calibrate held items in the shared Edit inspector.

The workbench edits over the live Minecraft world, keeping world lighting, Oculus PBR materials and the GPU pose cache. The character's visual pose, displayed position, body heading and held-item copy are frozen during calibration; there is no second preview scene.

Control Action
Right / Left select the physical hand, independent of the primary arm
W / translate tool drag a coloured local XYZ translation arrow
E / rotate tool drag a local rotation ring
R / scale tool drag the item scale handle
Position XYZ bone-frame offset in metres
Rotation XYZ intrinsic XYZ Euler angles in degrees
Scale uniform item scale
drag an axis label scrub that component; Shift reduces the step
F or focus icon centre and fit the actual posed body / selected hand, keeping the orbit angle
Ctrl+Z / Ctrl+Y undo / redo, including which hand was edited
reset icon restore the selected hand's resource-pack definition
Save / Ctrl+S save both hand mounts
Escape / close icon close and discard changes since the last save

The gold selection outline traces the actual baked item geometry; generated flat items use their pixel-side contours instead of an alpha rectangle. It is an always-visible geometry-edge overlay, not a shader-pack post-process. Items using a custom built-in renderer currently keep the wrist, pivot and gizmos but do not receive the outline.

The surrounding world keeps ticking. This is a client-side visual editor: the camera does not rotate the player, move the server entity or touch inventory. Closing restores the previous camera mode and normal character display; if the real player moved while editing, the character returns to its authoritative position.

Saved location

Overrides are local to the current game directory:

config/rigworks/equipment/<profile namespace>/<profile path>.json

No suffix is appended when the profile path already ends in .json. The file contains an equipment definition, not a replacement character profile. JSON rotations stay normalised XYZW quaternions; the editor displays Euler degrees.

Delete the local file and reload the character to return fully to the resource pack. To ship calibration with a pack, place the saved JSON at the resource referenced by the character profile's equipmentDefinition. The editor never rewrites resource-pack ZIPs or source FBX files.

Offsets apply to every item using that hand mount for that profile, in the scale-free bone frame before the character profile's uniform model scale, and before Minecraft's own third-person item display transform. The editor does not rewrite individual items' display JSON and does not create finger-grip animation.

Equipment views

RigWorks reuses native item rendering and native/compatible player RenderLayers. The character pose is evaluated by the normal animation update, and world, shadows, equipment, first-person and inventory views observe the same finished pose.

  • First person: replaces only PlayerRenderer.renderLeftHand / renderRightHand. The triangle mask accepts triangles whose three vertices have at least half their weight on the selected upper-arm descendant chain, reuses the existing deformed vertex buffers, does not re-evaluate animation and does not change server hitboxes. The imported shoulder-to-elbow reference axis is aligned with native +Y and the arm chain's reach is fitted to the native 12-pixel first-person arm. Missing arm mapping or an empty mask leaves native arms visible.
  • Remote players: the optional rigworks:appearance channel relays the selected profile, mode and flight state plus a versioned full visual configuration and content-addressed JSON/JS package. The server assigns revisions, uses the real sender UUID, rate limits changes and supplies tracking/login/dimension catalogs. Movement, inventory, use/swing state and gameplay authority stay vanilla.
  • Armor: body armor uses the chest/spine/hips frame and inferred shoulder/torso/limb dimensions. Optional head and back sockets override the inferred attachment frames. This is an attachment adapter, not a cloth or armor fitting solver: a rigid vanilla armor sleeve does not bend at a custom elbow.

Clone this wiki locally