Data Packs Game Mechanic

Minecraft Health Percentage Indicator

  • 10k views 0 today
  • save_alt 1.1k downloads
Compatibility
Minecraft 1.21
Changes include
  • Functions
  • 4
  • 5
  • 1
pinksheep451
Lvl 42Master Sheep
14
Normally you can only see your estimated health with the hearts bar, where half a heart is 5%.

But this data pack will show your ACTUAL health. In this case, it shows you your health percentage.

HOW IT WORKS

The data pack will show you how much health % you have. It takes your health through your player data, then assigns the value into a score. This number ranges from 0 to 100 to give you your health %. Because of how the data pack works, the % will be rounded down to the nearest tenth, regardless of the hundredth digit.

So with 33.33333 . . . % health, it would be rounded to 33.3%. Similarly, if you have 91.66666 . . . % health, it would be rounded to 91.6%.

Your % is shown in the actionbar, and the color varies depending on your health. As your health % drops, the color may change from green to orange to red.

This data pack can be useful for late-game players since weak attacks with late-game armor barely do damage.

Note: This datapack only supports 1.21+ due to renames in the datapack directories (i.e. "functions" --> "function").

1 Update Logs

Update #1: speedrun datapack : by pinksheep451 09/21/2022 5:27:51 pmSeptember 21, 2022 @ 9:27 pm UTC

- Updated to reflect on the speedrun datapack.

More like this

  Have something to say?

Kate1902019
09/05/2022 3:23 am
Level 39 : Artisan Princess
history
Don't let that zombie kill you! Because that mob is not a human! Since I got upset at them for killing Markiplier! >:(
1

Welcome