mojira.dev
MC-99958

stat.fallOneCm does not account for falling within 0.609552546740035 blocks

The bug

stat.fallOneCm does not increase if you drop 0.609552546740035 blocks or below. However, if you drop at higher heights than 0.609552546740035, the score increases.

Note: It appears that it increases even if you don't take damage, as long as you fall over 0.609552546740035 blocks. Can be tested with jump boost. So there is no relation to damage taken to increase fall stat.

How to reproduce

  1. Go into Survival mode

  2. Create stat.fall_one_cm scoreboard objective

    /scoreboard objectives add fallOneCm minecraft.custom:minecraft.fall_one_cm
  3. Have the objective be displayed on the sidebar

    /scoreboard objectives setdisplay sidebar fallOneCm
  4. Be in survival and teleport 0.609552546740035 blocks up and drop to see score does not update

    /tp ~ ~0.609552546740035 ~
  5. Teleport 0.609552546740036 or more blocks up and drop to see score updates

  6. Repeat test with a high jump boost level so that you fall more than 2.1 blocks and notice that the score increments

Linked issues

Comments 9

I don't think this should be considered as a bug. This is implemented so that this doesn't work when you jump.
The game only increases the stat:
1) When your velocity on Y is negative after you've jumped AND your landing position is at least 1 block lower than where you jumped off.
2) When you take fall damage.
When you just walk off a block, it doesn't increase the score and maybe that could be added, but the name of the score is FallOneCm, not wentDownOneCm so this is probably right.

CORRECTION: It appears that it increases even if you don't take damage, as long as you fall over 2.1 blocks. Can be tested with feather falling boots. So there is no relation to damage taken to increase fall stat.

So I guess this probably isn't a bug? Should fallOneCm count up while falling like walkOneCm or sprintOneCm after the player falls over 2.1 blocks?

Please update the ticket to reflect your most recent findings.

Updated with a new value. Removed any mention of the issue that is tracked by MC-136966

Can confirm in 20w48a.

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w06a.

I tested it in 24w38a and the stat didn't increase when falling 1.1451067 blocks or below.

onnowhere

(Unassigned)

Confirmed

(Unassigned)

falling, statistic-custom:fall_one_cm, statistics

Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.9.4, Minecraft 1.10 Pre-Release 2, ..., 20w48a, 21w03a, 21w05b, 21w06a, 24w38a

Retrieved