mojira.dev
MC-231420

Using usable items doesn't reduce player speed when the player is riding a horse, donkey, or mule

When using a spyglass while standing, movement is slowed dramatically, however, when I got on a mule and zoomed in using the spyglass, I could still "gallop" at full speed. 

Expected Result

I would slow down while using the spyglass

Attachments

Comments 4

I can confirm. This can also be seen when eating food, charging a bow, blocking with a shield, etc... I believe this is intentional, however, that is not my call to make.

Can confirm in 1.18.2 and 22w16b. Here's a code analysis of this issue.

Code Analysis:

The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn.

net.minecraft.client.player.LocalPlayer.java

public class LocalPlayer extends AbstractClientPlayer {
   ...
   public void aiStep() {
      ...
      if (this.isUsingItem() && !this.isPassenger()) {
         this.input.leftImpulse *= 0.2F;
         this.input.forwardImpulse *= 0.2F;
         this.sprintTriggerTime = 0;
      }
      ...

If we look at the above class, we can see that the code specifically checks to see whether or not the player is a passenger before reducing their movement speed as a result of them using an item. This is evident through the following line of code:

if (this.isUsingItem() && !this.isPassenger())

This means that if the player is using an item and is a passenger, their movement speed is not reduced.

Can confirm in 1.19.1.

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Ryder Scott

(Unassigned)

Confirmed

Player

1.17.1, 1.18.1, 1.18.2, 22w16b, 1.19.1, 1.19.3, 1.19.4 Pre-release 2, 1.19.4, 23w14a

Retrieved