mojira.dev
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

 

 

Linked issues

Attachments

Comments 14

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w05a.

Can confirm in 21w05b.

Can confirm in 21w06a.

4 more comments

Can confirm in 1.18.2 and 22w19a.

Can confirm in 1.19.

Can confirm in 1.19.2.

Can confirm in 24w45a.

There are also problems with heights of 20, 28 and 36.

Thommy Siverman

(Unassigned)

Confirmed

Platform

Low

Player

1.15 Pre-release 4, 1.16.1, 1.16.2 Release Candidate 1, 1.16.3, 1.16.4 Release Candidate 1, ..., 22w18a, 22w19a, 1.19, 1.19.2, 24w45a

25w02a

Retrieved