Change durability from a text to a bar

This commit is contained in:
2026-09-29 23:35:58 -03:00
parent 1ac7a5c943
commit d859c6066c
3 changed files with 23 additions and 6 deletions
-3
View File
@@ -29,9 +29,6 @@ export function item_tooltip(item: ItemStack): TooltipLine[] {
if (info?.food) {
lines.push({ text: `Restores ${info.food.nutrition} hunger`, color: FOOD_COLOR });
}
if (info?.tool) {
lines.push({ text: `Durability: ${item.durability()} / ${info.tool.durability}`, color: LORE_COLOR });
}
const static_lore = info?.lore;
for (const lore of [static_lore, item.lore]) {
for (const text of lore?.split("\n") ?? []) {