Madis0 / OneBar

A Minecraft HUD mod for Fabric Loader
Other
8 stars 2 forks source link

Fire overlay #6

Closed Madis0 closed 3 years ago

Madis0 commented 3 years ago

Should somehow determine whether the player is on fire and indicate that, with the estimated health loss.

Madis0 commented 3 years ago

Apparently the client can only know if it is on fire (doesRenderOnFire) and in what type of fire (getFireTicks).

Madis0 commented 3 years ago

Still can be calculated somewhat by source type and maybe it is findable after all, as wiki says

stored in a Fire tag shared by all entities

Madis0 commented 3 years ago

Source type is inefficient for calculation (fire = soul fire, Nether effects, fire protection enchantment...) and that Fire tag is apparently on NBT, which is server-side.