Icons.png - minecraft.fandom.com
Treść tej podstrony pochodzi z artykułu „Icons.png” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
This article is a work in progress.
Please help in the expansion or creation of this article by expanding or improving it. The talk page may contain suggestions.
icons.png in Java Edition 1.18.2.
icons.png is a texture sheet used by the game to store the textures of several UI elements.
Content[]
icons.png contains the sprites of all UI elements, including health, hunger, experience, and armor.
In the 1.21 update, icons.png has been split into individual textures.
The following image map shows you how the elements are used when you hover over them. (Several of them are unused, so they have no label)[1]

Logic for determining what heart or haunch icon to use:
def draw_heart(x, y):
if is_hardcore:
v = 45
else:
v = 0
# Draw background/outline
if recently_changed:
# White outline
draw(x, y, 16 + 9, v, 9, 9) # 25
else:
# Black outline
draw(x, y, 16, v, 9, 9)
if not is_absorption_heart:
# Above check did not exist until 20w49a, causing invisible absorption hearts
# https://bugs.mojang.com/browse/MC-18880
if is_poisoned:
u = 16 + 36 # 52
elif is_withered:
u = 16 + 72 # 88
elif is_frozen:
u = 16 + 126 # 142
else:
u = 16
if recently_lost:
# These are always drawn, but are overwritten in most cases
# (They draw up to the previous health value, while the regular hearts
# draw to the current health value)
# This references a nonexistent texture when frozen:
# https://bugs.mojang.com/browse/MC-206881
if half_heart:
draw(x, y, u + 54 + 9, v, 9, 9) # 79 / 115 / 151 / 205 (invalid)
else:
draw(x, y, u + 54, v, 9, 9) # 70 / 106 / 142 / 196 (invalid)
if is_absorption_heart:
# Prior to MC-18880 being fixed this could use missing textures
# After the fix u is always 16
if half_heart:
draw(x, y, u + 144 + 9, v, 9, 9) # 169
else:
draw(x, y, u + 144, v, 9, 9) # 160
else:
if half_heart:
draw(x, y, u + 36 + 9, v, 9, 9) # 61 / 97 / 133 / 203
else:
draw(x, y, u + 36, v, 9, 9) # 52 / 88 / 124 / 194
# 34 and 43 (red outline, white outline) seem to be unused)
def draw_haunch(x, y):
# Draw background/outline
if has_hunger:
# Green outline
draw(x, y, 16 + 13 * 9, 27, 9, 9) # 133
u = 16 + 36 # 52
else:
# Black outline
draw(x, y, 16, 27, 9, 9)
u = 16
if half_haunch:
draw(x, y, u + 45, 27, 9, 9) # 61 / 97
else:
draw(x, y, u + 36, 27, 9, 9) # 52 / 88
# 25, 34, 43, and 124 (white, red, white, and brown outlines) go unused
# As are 70, 79, 106, 155 (lighter variants that could have served the same
# purpose as recently lost hearts, but that doesn't really make sense for
# hunger)
There are a few additional invisible textures that have alpha set to zero but still have color data.
History[]
This section is missing information about the uses of the following icons, or if they are truly unused:
- Duplicate armor bar texture added in 20100218
- Duplicate connection icons added in Beta 1.8
- Mirrored hunger icon added in Beta 1.8
- Golden outlined empty hunger icon added in Beta 1.8
- Diamond circle things added in 12w25a
- Blue armor outline textures added in 15w34b.
Please expand the section to include this information. Further details may exist on the talk page.
The file was compressed in 13w09c, 15w49a, 1.11-pre1, 17w50a and 19w41a.
| Java Edition Classic | |||||
|---|---|---|---|---|---|
| 0.24_SURVIVAL_TEST | The crosshair texture has been added. Eight heart textures have been added for the health bar. Their uses are: empty,[verify] unknown, unknown, unknown, full heart (2 HP), half heart (1 HP), full heart while being damaged, half heart being damaged Textures for the armor bar have been added, with icons for 2, 1 and 0 points. A bubble and bubble popping icon for the air meter has been added. There is a large region of purple grid closely resembling the | ||||
| Java Edition Indev | |||||
| 0.31 | 20100109 | Changed heart textures. Red parts now more bright and empty hearts are now more dark. | |||
| Minecraft Indev | 20100218 | The armor bar textures have been repositioned, and a duplicate armor point icon added - whether it has use or is an unused duplicate is unknown. | |||
| Java Edition Beta | |||||
| 1.8 | Pre-release | Textures for the hunger bar have been added, like with the health bar: empty,[verify] unknown, unknown, unknown, full icon (2), half icon (1), unknown, unknown. Textures for hearts with the Poison status effect have been added: full, half, full taking damage, half taking damage. Textures for hunger with the Hunger effect have been added: full, half, unknown, unknown. There are two empty hunger shaped icons, one likely for empty hunger under the Hunger effect. The other is unknown/duplicate. There is a mirrored hunger icon, its use unknown. There are two sets of connection icons. Their exact use cases are unknown, and it is unknown if one is composed of unused duplicates. Textures for the experience bar have been added. The half armor bar icon has been mirrored to reflect its new placement. | |||
| Java Edition | |||||
| 1.0.0 | Beta 1.9 Prerelease 2 | Textures for hearts in hardcore mode have been added:empty,[verify] unknown, unknown, unknown, full heart (2 HP), half heart (1 HP), full heart while being damaged, half heart being damaged, poisoned full heart, poisoned half heart, poisoned full heart being damaged, poisoned half heart being damaged | |||
| Beta 1.9 Prerelease 6 | The boss bar textures have been added to the file. | ||||
| 1.3.1 | 12w25a | ||||
| 1.4.2 | 12w34a | ||||
| 1.6.1 | 13w16a | The horse jump bar has been added. | |||
| 13w25a | |||||
| 1.9 | 15w31a | The boss bar textures are no longer used with the addition of bars.png. | |||
| 15w34a | |||||
| 15w34b | Two light blue armor icon outlines have been added, of completely unknown strange use. | ||||
| 1.11.1 | 16w50a | ||||
| release | Attack indicator when focussing on entity now shows crosshair (+) rather than an exclamation mark. | ||||
| 1.17 | 20w46a | ||||
| 20w49a | This version now has frozen hearts for hardcore mode. | ||||
| 21w07a | |||||
| 21w11a | This version frozen hearts are actually unique in hardcore mode.[2] | ||||
| Upcoming Java Edition | |||||
| Combat Tests | Combat Test 3 | ||||
| Pocket Edition Alpha | |||||
| v0.1.0 | |||||
| v0.6.0 | |||||
| v0.11.0 | build 1 | ||||
| v0.13.0 | ? | ||||
| v0.15.0 | build 1 | ||||
See also[]
| In use |
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Removed |
| ||||||||||
References[]
- ↑ "The GUIde" , April 2016.
- ↑ MC-207557






















