[GH-ISSUE #2558] incorrect sword size on vexes #647

Closed
opened 2026-11-02 15:40:48 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @mangodotsh on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2558

What I did: I spawned a vex via the summon command and with the egg.
What happened: The vex had a normal sized sword, like if it was held by a zombie.
What I expected: The vex spawning with a tiny iron sword.

How they look:

Image

How they should look:

Image
Originally created by @mangodotsh on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2558 > What I did: I spawned a vex via the summon command and with the egg. > What happened: The vex had a normal sized sword, like if it was held by a zombie. > What I expected: The vex spawning with a tiny iron sword. How they look: <img width="1366" height="768" alt="Image" src="https://github.com/user-attachments/assets/f3739a2f-e897-4c3d-87c3-4ad10ebae070" /> How they should look: <img width="240" height="219" alt="Image" src="https://github.com/user-attachments/assets/8618ff9a-4f12-4037-a0b0-599910a7e20d" />
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

Thanks mango for the report! A fix is up in #2560: the vex's held item now uses the vex's own small hand scale and offset. It's waiting for review.

<!-- gh-comment-id:6429371053 --> @kacpherek commented on GitHub (Oct 26, 2026): Thanks mango for the report! A fix is up in #2560: the vex's held item now uses the vex's own small hand scale and offset. It's waiting for review.
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: verified on current main: the vex held a full-size sword, and #2695 fixes it. That pull request carries @kacpherek's #2560 (the scale and the offset) plus the regression test that was missing.

What I verified, and how

  • The bug. Vanilla's VexModel.translateToHand transforms the root, the body and the active arm, then scales by 0.55 and moves the item by the vex's own offset (0.046875, -0.15625, 0.078125 in the arm's space, mirrored for the left arm), so the vex's sword is the tiny one vanilla shows. Horizon submitted the held item with the generic hand transform, at the full size — the sword in the report.
  • The fix (#2695, carrying #2560): the held item is drawn with the vex's own scale and offset.
  • The regression test (new in #2695) fails without the fix:
    running 1 test
    test mobs::render::tests::the_vex_holds_its_item_at_the_small_scale ... ok
    
    test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1164 filtered out; finished in 0.17s
    
    With the vex's scale removed, the same test fails with the vex's item is drawn at 0.55 scale, got 1.
  • The vex's model is unchanged and still matches the pinned 26.3 client: python3 tools/test_entity_model_parity.py --filter vex → "31 cases compared over 1 layers … 5208 with identical packed bytes, 0 components one step apart at a truncation edge, max byte difference 0 … entity model parity ok".

Vanilla reference — VexModel.translateToHand (the 0.55 scale and offsetStackPosition), VexRenderer (the ItemInHandLayer that asks the model for the hand transform), ArmedModel.translateToHand.

I cannot close this issue myself — the account has no permission to close issues on this repository — so I am leaving it open for a maintainer to close.

<!-- gh-comment-id:6435020772 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: verified on current main: the vex held a full-size sword, and #2695 fixes it. That pull request carries @kacpherek's #2560 (the scale and the offset) plus the regression test that was missing. **What I verified, and how** * **The bug.** Vanilla's `VexModel.translateToHand` transforms the root, the body and the active arm, then scales by 0.55 and moves the item by the vex's own offset (0.046875, -0.15625, 0.078125 in the arm's space, mirrored for the left arm), so the vex's sword is the tiny one vanilla shows. Horizon submitted the held item with the generic hand transform, at the full size — the sword in the report. * **The fix** (#2695, carrying #2560): the held item is drawn with the vex's own scale and offset. * **The regression test** (new in #2695) fails without the fix: ``` running 1 test test mobs::render::tests::the_vex_holds_its_item_at_the_small_scale ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1164 filtered out; finished in 0.17s ``` With the vex's scale removed, the same test fails with `the vex's item is drawn at 0.55 scale, got 1`. * **The vex's model is unchanged** and still matches the pinned 26.3 client: `python3 tools/test_entity_model_parity.py --filter vex` → *"31 cases compared over 1 layers … 5208 with identical packed bytes, 0 components one step apart at a truncation edge, max byte difference 0 … entity model parity ok"*. **Vanilla reference** — `VexModel.translateToHand` (the 0.55 scale and `offsetStackPosition`), `VexRenderer` (the `ItemInHandLayer` that asks the model for the hand transform), `ArmedModel.translateToHand`. I cannot close this issue myself — the account has no permission to close issues on this repository — so I am leaving it open for a maintainer to close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#647
No description provided.