Перейти к содержимому
Mineforgian

IG: Durability Multiplier

Complete control over item durability in Minecraft 26.1+. Multiply durability by any factor or make items completely unbreakable — all through GameRules. Works automatically with modded items via vanilla tags. Part of the Instant Gratification Collection.

Загрузки
933
Подписчики
2
Обновлён
22 июля 2026 г.
Лицензия
GPL-3.0-or-later

Опубликован 15 февраля 2026 г.

Requires Fabric API Modrinth: Dasik Library Java License Minecraft 26.1+

⚒️ Durability Multiplier

Active Version Policy: I build 1 JAR for 1 Version. I only update and maintain the latest active Minecraft version (e.g. when 26.3 is released, 26.2 is retired). No backports or legacy version maintenance. Please do not ask.

Stop babysitting your tools. Focus on the adventure.

Durability Multiplier gives you complete control over item longevity. Whether you want double durability or complete invincibility (God Mode), it's just a GameRule away.

Part of the Instant Gratification Collection — mods that respect the player's time.


✨ Features

🔧 Multiplier System

Make items last 2x, 10x, or even 2,147,483,647x longer.

  • Global Multiplier: One rule to affect all damageable items.
  • 12+ Granular Categories: Separate multipliers for Swords, Spears, Tridents, Maces, Bows, Crossbows, Tools, Armor, Elytra, and Shields.
  • Overflow Protection: Uses long math internally to prevent integer overflow — items cap at max durability instead of breaking instantly.

🛡️ God Mode (Infinity)

Toggle complete invincibility for item categories.

  • Per-Category Control: Make only your armor unbreakable, or make everything invincible.
  • Hierarchy: Category-specific settings override Global settings. Infinity always takes precedence.

📦 Dynamic Modded Item Support

Automatically scans items on startup to dynamically register multipliers and infinity rules for custom modded items that don't fit into standard categories.

  • Dynamic Config GUI: Customize modded items directly from the in-game configuration screen.

💬 Tooltip Display

Hover over any item to see its durability status directly in its tooltip:

  • ⟨Nx Category/Item Durability⟩ — showing the active multiplier, dynamically rendering localized modded item names (e.g., ⟨4x Blood Katana Durability⟩).
  • ✦ UNBREAKABLE — gold bold text when God Mode is active.
  • Fully togglable via GameRule.

⚙️ Configuration (Native Game Rules & Config GUI)

Configure everything in-game using the Edit Game Rules screen, via standard commands, or through the optional configuration GUI (requires ModMenu + Cloth Config).

[!WARNING] GameRule & Config Separation: Changing values in the configuration file or ModMenu configuration screen only defines default settings for newly generated worlds. To modify settings in an existing world, you must change them in-game using /gamerule commands or through the standard GameRules edit screen.

Native GameRules UI

/gamerule ig:dm_multiplier_global 4      → 4x durability for everything
/gamerule ig:dm_infinity_swords true     → Swords never break
/gamerule ig:dm_multiplier_armor 10      → 10x armor durability
/gamerule ig:dm_infinity_global true     → Everything is unbreakable
/gamerule ig:dm_show_tooltip false       → Hide tooltip indicator
/gamerule ig:multiplier_mymod_cool_item 5 → 5x durability for a specific modded item

☕ Support

If you enjoy the Instant Gratification collection, consider fueling the next update!

Ko-fi SocioBuzz Saweria

[!NOTE] Indonesian Users: SocioBuzz and Saweria support local payment methods (Gopay, OVO, Dana, etc.) if you want to support me without using PayPal/Ko-fi!


📜 Credits

Role Author
Creator Rifaditya (Dasik)
Collection Instant Gratification
License GPLv3

[!IMPORTANT] 📦 Modpack Permissions & Distribution: You are free to include this mod in any modpack on any platform. However, the mod itself must be downloaded from its official distribution pages on Modrinth or CurseForge. Re-uploading or redistributing the mod jar file to third-party sites is strictly prohibited unless explicitly permitted by the creator.

License & Forks: Since the source code is licensed under GNU GPLv3, you are fully permitted to fork the repository, make modifications, build your own versions, and distribute them under the terms of the GPLv3. The prohibition on third-party redistribution applies exclusively to the official compiled releases/jars published by the original creator (Dasik/Rifaditya). Forks must be published as distinct projects, not direct re-uploads of official builds.


Made with ❤️ for the Minecraft community

Part of the Instant Gratification Collection

Ченджлог

1.2.1+26.2Релиз26.2 · 22 июля 2026 г.

[1.2.1+26.2] - 2026-07-22

Added

  • Forward Compatibility & Version Guard: Configured fabric.mod.json with "minecraft": ">=26.2-" for open-ended forward compatibility. Added zero-dependency ModVersionGuard check on startup to display human-readable guidance if an incompatible Minecraft API version is encountered.
1.2.0+26.2Релиз26.2 · 22 июля 2026 г.

[1.1.9+26.1.2] - 2026-07-11

Removed

  • Removed live GameRule sync on config save. Changing config values now only defines default settings for new worlds, allowing each world to maintain independent GameRule settings.
  • Appended §6Notice:§r warning notice to all gamerule descriptions to warn players about the config-only behavior when altering settings in ModMenu config screen.
1.1.9+26.1.2Релиз26.2 · 13 июля 2026 г.

[1.1.9+26.1.2] - 2026-07-11

Removed

  • Removed live GameRule sync on config save. Changing config values now only defines default settings for new worlds, allowing each world to maintain independent GameRule settings.
  • Appended §6Notice:§r warning notice to all gamerule descriptions to warn players about the config-only behavior when altering settings in ModMenu config screen.
1.1.8+A-26.1.2Релиз26.2 · 11 июля 2026 г.

[1.1.8+A-26.1.2] - 2026-06-12

Changed

  • Performance Optimization: Implemented a thread-safe ConcurrentHashMap item classification cache in DurabilityHelper to cache resolved item categories, preventing redundant component scans and tag evaluations on every frame (tooltips) and every damage event.
  • Compliance Sanitisation: Aligned mod comments with the Anonymity Mandate by removing references to the forbidden name from source file header comments in ClothConfigScreenHelper and DurabilityConfig.

[1.1.7+A-26.1.2] - 2026-06-11

Changed

  • Performance Optimization: Refactored the durability damage reduction calculations in DurabilityHelper and ItemStackDurabilityMixin to perform item classification only once per damage event. This avoids redundant GameRule checks and tag/component inspections in the hot execution path.

[1.1.6+R-26.1.2] - 2026-06-08

Changed

  • Release: Promoted Durability Multiplier to stable release stage.

[1.1.5+A-26.1.2] - 2026-06-08

Changed

  • Modded Items Config Explanation: Updated the "No modded items found" explanation string on the configuration screen to clarify that standard modded weapons, tools, and armor are already automatically covered under the main categories (Multipliers and God Mode), and that only custom/uncategorized modded items are listed in the dynamic section.

[1.1.4+A-26.1.2] - 2026-06-08

Fixed

  • Mod Menu Configuration GUI (NPE Crash): Fixed a crash where clicking the configuration gear in Mod Menu threw java.lang.NullPointerException: Components not bound yet. This occurred because ClothConfigScreenHelper scanned BuiltInRegistries.ITEM and queried item.getDefaultInstance().getMaxDamage() before item components were bound to their holder references. Fixed by caching discovered dynamic items during the registry freeze phase in a static list, and using item.getDescriptionId() (translatable component) instead of calling item.getDefaultInstance().
  • Registry Scan (Reflection Access Exception): Fixed startup warning log spam Failed to check durability... java.lang.IllegalAccessException during item scanning. This was caused by the nested helper record DataComponentInitializers$InitializerEntry being package-private, preventing direct reflection invocation of its public methods. Resolved by calling setAccessible(true) on key() and initializer() method objects.

[1.1.3+A-26.1.2] - 2026-06-08 [CRASHING / BROKEN - DO NOT PUBLISH]

Fixed (Incomplete)

  • Registry Freeze Startup Crash (Data Components Check): Rewrote dynamic scanning to use reflection on DATA_COMPONENT_INITIALIZERS to bypass early ItemStack instantiation.
  • Broken / Crashing in Game:
    • Reflection Exception: Threw IllegalAccessException for every scanned item because reflected methods lacked setAccessible(true), flooding logs with warning stack traces and failing to detect dynamic items.
    • Config Screen Crash: Clicking the config button in Mod Menu crashed the client with NullPointerException: Components not bound yet due to item.getDefaultInstance() call in ClothConfigScreenHelper.

[1.1.2+A-26.1.2] - 2026-06-08 [CRASHING - DO NOT PUBLISH]

Fixed (Broken)

  • Registry Freeze Startup Crash: Attempted to fix startup NPE by moving registry scanning to MappedRegistry freeze mixin.
  • Crashing in Game: Crashed on startup with NullPointerException: Components not bound yet for mods that register items early before components are bound.
1.1.1+A-26.1.2Альфа26.2 · 10 июля 2026 г.

[1.1.1+A-26.1.2] - 2026-06-08

Added

  • Dynamic Modded Item Support: Added automatic scanning of BuiltInRegistries.ITEM on startup to dynamically register GameRules for modded items (which do not fit into standard tool/weapon categories) and listen to late modded item registrations.
  • Dynamic Config GUI: Added a dynamically populated "Modded Items" category in the Cloth Config configuration screen, rendering translatable item names, allowing multiplier/infinity adjustments, and syncing settings to active server GameRules in real time.

Changed

  • Tooltip Name Resolution: Upgraded tooltips for uncategorized modded items to dynamically render the item's specific localized hover name (e.g., 4x Blood Katana Durability) instead of a generic label.
1.1.0+A-26.1.2Альфа26.1.2, 26.2 · 8 июля 2026 г.

[1.1.0+A-26.1.2] - 2026-06-08

Changed

  • Item Classification: Upgraded the item classification system to support modded items using class-based (e.g. instanceof ShieldItem, instanceof BowItem) and component-based (e.g. DataComponents.GLIDER, DataComponents.EQUIPPABLE, DataComponents.TOOL) checks instead of hardcoded vanilla item references.
1.0.8+R-26.1.2+2Релиз26.2-rc-1, 26.2-rc-2, 26.2 · 13 июня 2026 г.

[1.0.8+R-26.1.2]

Changed

  • Release: Promoted Durability Multiplier to stable release stage.
1.0.7+A-26.1.2Альфа26.1.2, 26.2-rc-1 · 12 июня 2026 г.

[1.0.7+A-26.1.2]

Added

  • Config: Added an optional configuration GUI using Cloth Config and ModMenu with safe dynamic class loading.

Комментарии

Загружаем…