Mojira Archive
MC-167125

Rounding error on fall damage

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

 

 

Fixed

Thommy Siverman

2019-12-05, 12:36 PM

2025-01-09, 01:31 PM

2024-12-09, 09:07 AM

8

5

Confirmed

Low

Platform

Player

1.15 Pre-release 4 - 24w45a1.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, 24w45a

25w02a