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

Rounding error on fall damage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15 Pre-release 4, 1.16.1, 1.16.2 Release Candidate 1, 1.16.3, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w51a, 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w15a, 1.17, 1.17.1, 21w38a, 21w39a, 1.18, 1.18.1, 1.18.2, 22w18a, 22w19a, 1.19, 1.19.2
    • None
    • Confirmed
    • Player
    • Low
    • Platform

      There's a rounding error when falling from a height of 12 blocks. 

      Starting with falling from a height of 4 blocks, the player takes half a heart of damage, and the damage increases with 0,5 per extra block of falling. 

      This works up untill falling from 12 blocks height, witch should do 4,5 hearts damage. But instead, it does only 4. 

      Falling from height (x blocks) Damage taken
      5 1
      6 1,5
      7 2
      8 2,5
      9 3
      10 3,5
      11 4
      12 4
      13 5
      14 5,5
      15 6

       

       

            Unassigned Unassigned
            Roq12 Thommy Siverman
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: