[GH-ISSUE #5704] Lunge enchant bug #1781

Open
opened 2026-11-02 15:49:37 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kira-horizon[bot] on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5704

Version: not given · OS: Windows, Ryzen 7 7700x, RX 9060 xt (16gb) (copied from the report)

What I did: I enchanted a spear (any) with lunge
What happened: it drags you down when using
What I expected: The lunge performs as usual and doesnt drag you down
Does it happen every time? Yes
Horizon version: (image 1)

OS, CPU, GPU: Windows, Ryzen 7 7700x, RX 9060 xt (16gb)

Reported on Discord by colorlessMC in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5704 **Version:** not given · **OS:** Windows, Ryzen 7 7700x, RX 9060 xt (16gb) <sub>(copied from the report)</sub> > What I did: I enchanted a spear (any) with lunge > What happened: it drags you down when using > What I expected: The lunge performs as usual and doesnt drag you down > Does it happen every time? Yes > Horizon version: (image 1) > > OS, CPU, GPU: Windows, Ryzen 7 7700x, RX 9060 xt (16gb) Reported on Discord by **colorlessMC** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1566298747971829830) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [D162DC24-9840-458E-ABDE-381F752F00B1.png](https://cdn.discordapp.com/attachments/1566298747971829830/1566298748986982491/D162DC24-9840-458E-ABDE-381F752F00B1.png?ex=6ae808e2&is=6ae6b762&hm=7ea360ab401fddbc6f7dfff37f2dc44b3e4a080879fef8a41ffe24ad8c9b346c&) - [2026-10-31_22-43-25.mkv](https://cdn.discordapp.com/attachments/1566298747971829830/1566298749460942918/2026-10-31_22-43-25.mkv?ex=6ae808e2&is=6ae6b762&hm=2773a5a5f60f8b86ef7a0b1db915a7070fc2b0b2cf4b1476fce005f254a29c22&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
Author
Owner

@ludovic111 commented on GitHub (Nov 1, 2026):

🤖 Agent: I looked into this on Nightly d91cab6 (the build in the report), with horizon-ctl on the default server-thread path, and compared it with vanilla 26.3's code (ApplyEntityImpulse.apply, ServerGamePacketListenerImpl.tickPlayer).

Measured (survival, full food, Lunge III netherite spear, looking level; position and velocity every tick after the jab):

  • Standing on the ground: pushed 3.0 blocks forward (z velocity 1.374, then the usual ground friction). The y velocity stays at -0.0784, the normal on-ground value. Feet height doesn't change, on a flat floor or on generated plains.
  • Walking / sprinting: same, plus the walk. No change in height.
  • In a jump (jab 3 ticks in), standing or sprinting: the forward push is right. The arc goes slightly higher than in a jump without the jab, not lower: the server sends its own copy of your velocity, which is one tick behind your client. Vanilla does exactly the same (its server copy also gets one tick of gravity per server tick, and the motion packet replaces the client's velocity). The lunge_motion harness checks these values against a real vanilla server.
  • Mining: a spear never breaks blocks, on either path (the same check as vanilla's startAttack/continueAttack).

So on this Mac I can't make the lunge pull you down: every number above matches vanilla. This doesn't look like the extra gravity tick from #5656: that one was a timing problem in the test harness, not in the game.

In the video, the survival jabs don't move the player at all, and later the player stands in a 1×1 hole two blocks deep. colorlessMC, could you tell us (Kira passes replies from the Discord thread along):

  1. Does "drags you down" mean you sink into the ground (end up below the grass), you fall faster in the air, or the camera dips?
  2. Did that 1×1 hole appear by itself when you lunged, or had you dug it?
  3. Does it also happen in a new flat world (Superflat), in survival and in creative?
  4. Does it also happen with the lunge off, on a plain spear?

If you can, a short clip with F3 open (the XYZ line) would show the exact height before and after the jab.

<!-- gh-comment-id:6553571934 --> @ludovic111 commented on GitHub (Nov 1, 2026): 🤖 Agent: I looked into this on Nightly d91cab6 (the build in the report), with `horizon-ctl` on the default server-thread path, and compared it with vanilla 26.3's code (`ApplyEntityImpulse.apply`, `ServerGamePacketListenerImpl.tickPlayer`). **Measured** (survival, full food, Lunge III netherite spear, looking level; position and velocity every tick after the jab): - **Standing on the ground:** pushed 3.0 blocks forward (z velocity 1.374, then the usual ground friction). The y velocity stays at -0.0784, the normal on-ground value. Feet height doesn't change, on a flat floor or on generated plains. - **Walking / sprinting:** same, plus the walk. No change in height. - **In a jump (jab 3 ticks in), standing or sprinting:** the forward push is right. The arc goes slightly *higher* than in a jump without the jab, not lower: the server sends its own copy of your velocity, which is one tick behind your client. Vanilla does exactly the same (its server copy also gets one tick of gravity per server tick, and the motion packet replaces the client's velocity). The `lunge_motion` harness checks these values against a real vanilla server. - **Mining:** a spear never breaks blocks, on either path (the same check as vanilla's `startAttack`/`continueAttack`). So on this Mac I can't make the lunge pull you down: every number above matches vanilla. This doesn't look like the extra gravity tick from #5656: that one was a timing problem in the test harness, not in the game. In the video, the survival jabs don't move the player at all, and later the player stands in a 1×1 hole two blocks deep. **colorlessMC, could you tell us** (Kira passes replies from the Discord thread along): 1. Does "drags you down" mean you sink into the ground (end up below the grass), you fall faster in the air, or the camera dips? 2. Did that 1×1 hole appear by itself when you lunged, or had you dug it? 3. Does it also happen in a new flat world (`Superflat`), in survival and in creative? 4. Does it also happen with the lunge off, on a plain spear? If you can, a short clip with F3 open (the XYZ line) would show the exact height before and after the jab.
Author
Owner

@kacpherek commented on GitHub (Nov 1, 2026):

Thanks. Horizon's Lunge impulse matches vanilla's ApplyEntityImpulse (view direction with the vertical part zeroed by coordinate_scale [1, 0, 1], 0.458 × level forward), and the jab follows PiercingWeapon.attack, so from the code it should push forward, never down. Could you describe what "drags you down" looks like (a short clip helps), and whether it happens without the enchantment, in single player or on a server, and on the latest Nightly?

<!-- gh-comment-id:6555143679 --> @kacpherek commented on GitHub (Nov 1, 2026): Thanks. Horizon's Lunge impulse matches vanilla's `ApplyEntityImpulse` (view direction with the vertical part zeroed by `coordinate_scale` [1, 0, 1], 0.458 × level forward), and the jab follows `PiercingWeapon.attack`, so from the code it should push forward, never down. Could you describe what "drags you down" looks like (a short clip helps), and whether it happens without the enchantment, in single player or on a server, and on the latest Nightly?
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

🤖 Agent: Checked Lunge against the 26.3 sources and in game. Vanilla's lunge is apply_impulse with direction (0,0,1), coordinate_scale (1,0,1) and magnitude 0.458 per level, so it pushes along the look direction horizontally and adds no vertical speed; Horizon does the same (enchant_effects.rs::apply_piercing_effect). In a flat test with Lunge III on an iron spear, a jab at a zombie moved the player 3 blocks forward at y=0 with no downward velocity, as expected. I could not see the attached video; to tell what pulls you down, could you say whether you are jabbing in the air or on the ground, and which way you are looking (up or down), and attach a screenshot of the build version?

<!-- gh-comment-id:6560987976 --> @xFedeT commented on GitHub (Nov 1, 2026): 🤖 Agent: Checked Lunge against the 26.3 sources and in game. Vanilla's lunge is `apply_impulse` with direction (0,0,1), coordinate_scale (1,0,1) and magnitude 0.458 per level, so it pushes along the look direction horizontally and adds no vertical speed; Horizon does the same (`enchant_effects.rs::apply_piercing_effect`). In a flat test with Lunge III on an iron spear, a jab at a zombie moved the player 3 blocks forward at y=0 with no downward velocity, as expected. I could not see the attached video; to tell what pulls you down, could you say whether you are jabbing in the air or on the ground, and which way you are looking (up or down), and attach a screenshot of the build version?
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#1781
No description provided.