mojira.dev
MCPE-71062

Health Query does not factor in absorption hearts to entity

using the new query.health query in 1.16, it does not accurately report the health value of the entity if he or she has absorption. 

how to reproduce: 
1) download the sample pack I have attached and apply it to a new world
2) give yourself the absorption effect, with any amplifier

3)  take damage, either by taking fall damage, shooting yourself with an arrow, etc. anything works

4) compare this to taking damage without the absorption effect, without the effect it works just fine

You will notice that the health value displayed from the /tellraw doesn't change even though you are losing hearts that were originally gained by the absorption effect (I have a /tellraw command displaying the health to play whenever the health of the player changes). I have these commands set up for up to 36 health (18 hearts). Also, I applied these commands to run if a player takes damage, as thats how I have it set up.

I think it would be extremely useful to have a query such as query.absorption and we can add the values of query.absorption + query.health to get the real health with status effects

 

Below I attached an example pack for you to test this.

 

Attachments

Comments 3

query.health is a useful query, but with these bugs it would be difficult to use fluidly.

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If so, can you please add it to the affected versions (or mention it if you are not the reporter)?

This ticket will automatically reopen when you reply.

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

user-6d71e

ambient

(Unassigned)

Unconfirmed

Windows

1.16.210.50 Beta, 1.16.200.51 Beta, 1.16.100.60 Beta, 1.16.30.52 RTX Beta, 1.16.100.54 Beta, ..., 1.16.40 Hotfix, 1.16.61 (PS4), 1.16.100.59 Beta, 1.16.100, 1.16.101 Hotfix

Retrieved