mojira.dev
MC-260937

Players with a high max_health value can render a large amount of hearts on the screen, effectively obstructing vision

If the player has a large amount of health points, the HUD will render a massive amount of hearts on the screen, which can therefore affect gameplay by obstructing player's vision.

[media]

This may not affect current vanilla gameplay, but it does in custom maps or servers with custom health mechanics. Can also be reproduced with absorption at high levels, however that case falls under MC-10755.

How to reproduce

  1. Create any world, in survival.

  2. Use this command:

    /attribute @p generic.max_health base set 1024
  3. Notice how the hearts can obstruct your vision.

Expected result
The player's health would not obstruct the vision by rendering too many hearts, but still displaying the current health by other means, similar to how the tab list does.

Observed result
The player's health shows in the HUD with a large amount of hearts, obstructing vision and affecting gameplay.

Related issues

Attachments

Comments

migrated
[media]
syarumi

I'm going to say this has probably a high chance of being closed due to certain comment in MC-32172.

I've made the report anyways since this makes use of attributes, not effects/enchants.

Brain81505

Can confirm, but might intended

syarumi

(Unassigned)

Confirmed

Player, UI

1.19.3, 1.19.4 Release Candidate 2, 1.19.4

Retrieved