mojira.dev
MC-111286

minecraft.fly_one_cm does not increment linearly when flying small distances

The bug

While flying around using WASD in creative mode the stat increases, but not if the player only moved by a small amount.

How to reproduce

  1. Create a scoreboard to track the stat /scoreboard objectives add Fly minecraft.custom:minecraft.fly_one_cm

  2. Put it on the sidebar so you see what's happening /scoreboard objectives setdisplay sidebar Fly

  3. Tap any of the WASD keys and notice it being stuck at 0, even with key presses longer than a tap

  4. Move just enough to have the score jump to a number, sometimes it increments by 24, 28 or other similar value. This happens during one tick.

Linked issues

Comments 6

This is actually related to speed, not distance, as can be seen by using the mouse scroll wheel to adjust your flying speed when in spectator mode. There is a minimum flight speed required in order for the statistic to increment, and when flying short distances there is not enough time to accelerate to this minimum speed, hence the statistic does not increase.

Can confirm in 21w05b that this is still an issue.

Can confirm in 1.17.1.

Can confirm in 1.19 and 22w24a.

Can confirm in 1.19.2.

Confirmed for 1.19.4.

Maxaxik

(Unassigned)

Confirmed

Statistics

stat.flyOneCm

Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 1.13.1-pre2, Minecraft 1.13.1, ..., 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.21

Retrieved