Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-120076

stat.fallOneCm doesn't increase in a linear fashion

    • Confirmed
    • Statistics

      The bug

      stat.fallOneCm doesn't increase in a linear fashion. This causes the fall damage to be incorrect. For example, the player should die when jumping from 23 blocks, but doesn't. while he does at 24 blocks.

      How to reproduce

      1. Load a new creative world, with cheats enabled.
      2. Create a scoreboard with the statistic minecraft.custom:minecraft.fall_one_cm with:
        /scoreboard objectives add fallen minecraft.custom:minecraft.fall_one_cm
        /scoreboard objectives setdisplay sidebar fallen 
        
      3. Fall from distance 3, 4, 5, 6 while taking note of the minecraft.custom:minecraft.fall_one_cm. Reset it after every fall.
      4. At distances 11-12, 16-17, 19-20 etc. The minecraft.custom:minecraft.fall_one_cm has the same value.

      Fall damage is also the same at those levels, creating inaccurate fall damage.

      After some testing, it turns out the score jumps at 0.609552546740036 from 0 to 1 (MC-99958), and at 1.194561548248788 from 1 to 2 (meaning that decreasing one of numbers' digit by one would give the lower score).

      Attached files

      1. A screenshot of my debug screen data.
      2. A few screenshots of the process of getting the date from the minecraft.custom:minecraft.fall_one_cm
      3. An Excel file containing the values with a graph (x=height fallen from according the y value of f3 and y= data from minecraft.custom:minecraft.fall_one_cm

        1. 2017-08-10_22.35.03.png
          2017-08-10_22.35.03.png
          207 kB
        2. 2017-08-10_22.36.37.png
          2017-08-10_22.36.37.png
          156 kB
        3. 2017-08-10_22.37.18.png
          2017-08-10_22.37.18.png
          166 kB
        4. MC-120076.png
          MC-120076.png
          23 kB
        5. Report.xlsx
          15 kB

          [MC-120076] stat.fallOneCm doesn't increase in a linear fashion

          DDetective47 added a comment -

          In 1.20.6, the statistic doesn't update at all while in creative mode.

          DDetective47 added a comment - In 1.20.6, the statistic doesn't update at all while in creative mode.

          In 1.19.4, the statistic is only incremented when the player falls more than about 2.1095 blocks.

          [Mod] ampolive added a comment - In 1.19.4, the statistic is only incremented when the player falls more than about 2.1095 blocks.

          By the same logic, this report would not be a bug either.

          Leaving both open until a developer says it's not a bug.

          [Mod] violine1101 added a comment - By the same logic, this report would not be a bug either. Leaving both open until a developer says it's not a bug.

          MC-111286 is not a bug. The reason that short 'flights' do not count is due to jumping. If it would count any time the player is in the air, it would count jumping too.

          Kerr Beeldens added a comment - MC-111286 is not a bug. The reason that short 'flights' do not count is due to jumping. If it would count any time the player is in the air, it would count jumping too.

          M added a comment -

          This seems to also be the case for other movement stats, or at least stat.flyOneCm MC-111286
          Although I haven't done much in-depth testing

          M added a comment - This seems to also be the case for other movement stats, or at least stat.flyOneCm MC-111286 Although I haven't done much in-depth testing

          Confirmed with unmodded 1.12.1 with teleporting to be able to measure more precisely.

          It also looks like the values are somewhat rounded as there are some "steps" in the graph. If I had measured with a higher resolution (I took a measurement every 0.5 blocks), I think the "steps" would maybe all have the same length.

          I attached a graph of my measurements for everyone who does not have excel.

          [Mod] violine1101 added a comment - Confirmed with unmodded 1.12.1 with teleporting to be able to measure more precisely. It also looks like the values are somewhat rounded as there are some "steps" in the graph. If I had measured with a higher resolution (I took a measurement every 0.5 blocks), I think the "steps" would maybe all have the same length. I attached a graph of my measurements for everyone who does not have excel.

          It does not. MC-99958 Describes that it only updates when you hit the ground in survival mode, while this reports that the values of falling from different heights does sometimes not result in a different value for the stat.fallOneCm, while it should.

          Kerr Beeldens added a comment - It does not. MC-99958 Describes that it only updates when you hit the ground in survival mode, while this reports that the values of falling from different heights does sometimes not result in a different value for the stat.fallOneCm, while it should.

          Does MC-99958 describe your issue?

          [Mod] violine1101 added a comment - Does MC-99958 describe your issue?

            Unassigned Unassigned
            TheSweetSuitMan Kerr Beeldens
            Votes:
            8 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: