Icons and items
Icons sit in a line like text does.

Kinds
| Syntax | Draws |
|---|---|
{icon:diamond_sword} | Any item |
{item:head:icon} | Whatever is in a slot |
{itemcount_icon:ender_pearl} | The item with how many you have |
{player_head} | Your face |
{target_block_icon} | The block you look at |
{record_icon} | The disc playing nearby, a barrier if none |
{icon:textures/mob_effect/speed} | Any texture, from the game or a resource pack |
{crosshair:textures/gui/sprites/hud/crosshair} | A texture blended like the crosshair |
Textures can be cut out of a bigger sheet: {icon:path, u, v, width, height, drawWidth, drawHeight}. Leave out what you do not need.
The old {gizmo} icon does not work on 26.x and reports an error.
Item slots
| Slot | Short names |
|---|---|
| weapon.mainhand | mainhand, main, weapon |
| weapon.offhand | offhand, off |
| armor.head, armor.chest, armor.legs, armor.feet | head, chest, legs, feet |
| hotbar.0 to hotbar.8 | h0 to h8 |
| inventory.0 to inventory.26 | i0 to i26 |
{item:chest} is the item name. Add a method to get something else: {item:chest:dur}, {item:chest:dur_per}, {item:main:enchant:sharpness:full}. All methods are listed on the variables page.
Icon flags
| Flag | Effect |
|---|---|
-s1.5 | Scale. Fractions like -s1/2 work |
-w14 | How much line width the icon takes |
-sh2,-1 | Nudge right and down |
-r45 | Rotate in degrees |
-dvc | Anchor at the corner instead of centering vertically |
-dur | Durability bar, item slots only |
-count | Stack count, item slots only |
-cooldown | Cooldown overlay, item slots only |
-rich | All three |
Armor examples

