mojira.dev
MC-203420

Taking a single HP worth of damage with absorption hearts + 1 health as max causes the heart to disappear

When typing in 

/attribute @s minecraft:generic.max_health base set 1

so that your max health to 1, and eat a golden apple to get the absorption hearts, taking 1 damage(From fire, cactus etc) will make your red heart disappear instead of the golden absorption ones. Taking multiple damage does not cause this, (Ex.falling from 4+ blocks or getting damage by cactus 2 times. This causes the red heart to disappear and reappear)

Attachments

Comments 10

I tested this, and also noticed that when I removed the effect with milk, I got a whole (red) heart back even though I was on .5 Absorption heart and had presumably lost the red heart

Hello!

I was able to reproduce this bug.

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w08b. Video attached.

Can confirm in 21w13a.

Can confirm in 21w16a.

This issue can no longer be reproduced in 1.18 Pre-release 1. This was most likely fixed at some point.

[media]

Cannot reproduce in 1.18.1 either.

SlicedBlock

(Unassigned)

Confirmed

(Unassigned)

1.16.4, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w08b, 21w10a, 21w13a, 21w16a

Retrieved