If you give yourself resistance with an amplifier or 8 or higher, you actually gain absorption health when you are next hurt. You can gain up to 8 absorption hearts with this bug.
- Enter survival mode.
- /effect @p resistance 99999 8
- Do something to cause damage to yourself, like teleporting high up into the air and falling.
- Notice that when you get hurt, you gain absorption hearts.