Skip to content

Cukkoo12/durabilityinfo

Repository files navigation

DurabilityInfo

Track your item durability everywhere — tooltip, HUD, and configurable warnings.

HUD and Tooltip Preview

Features

🛡️ Item Tooltip

Shows durability info directly on every damageable item's tooltip:

  • NumbersDurability: 235 / 500
  • PercentageDurability: 47%
  • Color-coded bar — green → yellow → red as durability drops

🖥️ HUD Overlay

Always-visible durability display on screen:

  • Shows item icons with a colored durability bar (or percentage) under each
  • Displays: helmet, chestplate, leggings, boots, main hand, offhand
  • Semi-transparent background for readability
  • Configurable position (top-left/right, bottom-left/right) + X/Y offset

⚠️ Low Durability Warning

  • Configurable threshold (warningThreshold, default: 10%)
  • Below threshold: red flashing bar + ITEM_BREAK sound (2s cooldown)
  • Helps prevent tools and armor from breaking unexpectedly

Configuration Screen

Configuration

File: .minecraft/config/durabilityinfo.json

Option Default Description
showDurabilityNumbers true Show current / max durability in tooltip
showPercentage true Show durability percentage in tooltip
showBar true Show color-coded durability bar in tooltip
showOnUnbreakable false Show info on unbreakable items
warningThreshold 10 Low durability warning threshold (%)
hudAnchor BOTTOM_RIGHT HUD position (TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT)
hudOffsetX 4 HUD horizontal offset (px)
hudOffsetY 4 HUD vertical offset (px)
hudDisplayMode BAR HUD display: BAR (icon + bar) or PERCENTAGE (icon + % text)
showDamageDealt false Show damage taken instead of remaining durability

If Cloth Config and Mod Menu are installed, you can configure everything in-game from the Mods screen.

Requirements

Optional

License

MIT — see LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages