#how can i make a max current slot tool durability tracker
1 messages · Page 1 of 1 (latest)
You can use Spiffy’s Inventory Slot element to mirror the currently selected tool (or any specific slot) and let its built‑in durability overlay show current vs. max durability automatically. Just right‑click the HUD background → New Element → Inventory Slot, set “Slot” to the active hotbar slot or a fixed ID (0–8 for hotbar; see the Inventory Slot IDs guide for the full numbering), and enable the durability overlay in the slot’s settings so it fills up/empties with the tool’s wear.
If you also want a numeric or custom bar readout, layer in a Progress Bar or Single-Line Text element, and feed it the appropriate placeholder value for the selected slot’s durability (for example you can use the Inventory Slot element’s own placeholders or the slot-related placeholders documented in the Placeholder reference). That lets you build any kind of max/current tracker you need while still having the Inventory Slot element handle the visual tracking.
it works awful. durability bar is behind tools
Since the built-in durability overlay is rendered behind the item (that’s just how the Inventory Slot element works), the easiest way to get a clear current/max tracker is to add your own element on top.
- Add an Inventory Slot for the tool you care about (hotbar slot or specific slot number) and keep it as the mirror.
- Add a Progress Bar or Text element above it and drive it via placeholders for current/max durability. You can grab the slot’s info using Spiffy’s slot-related placeholders (see the Placeholders reference and search for “slot_item_durability” or similar). Nest those inside a calculator placeholder if you need percentages.
That way you still get the tool preview from the slot, but your own overlay can sit on top with perfect visibility.
there are no max durability placeholder
Right now there’s no built-in placeholder that returns the max durability of an item slot, so you can’t pull “current / max” directly from placeholders.
If you need precise values you can try the NBT Data placeholder—player_nbt_data—and point it at the slot’s data to fetch MaxDamage/Damage (the same way /data get entity @s Inventory[{Slot:0b}] works). That lets you calculate the percentage manually in a calculator placeholder.
If that’s too complicated, you can keep the Inventory Slot element visible and just use your own overlay (progress bar or text) showing the placeholder value you can access (e.g., the slot’s damage NBT). The placeholder reference is here for easy searching: FancyMenu placeholder docs.
inventory slot doesn't help and max damage nbt tag doesn't exist
I’m sorry, but Spiffy/FancyMenu doesn’t expose a “max durability” value for slot items yet, so there’s nothing you can hook into for a proper current/max tracker—NBT path MaxDamage isn’t available client-side either, and Inventory Slot’s overlay always renders under the item, so it can’t be moved forward.
If you need that feature, the only option right now is to request it (e.g. via the mod’s GitHub issues) and wait for the placeholder to be added. In the meantime you can only show whatever durability-related placeholders are already available (check fancymenu’s placeholder list and search for “slot”/“durability”), but there’s no built-in max value to complete the ratio yet.