MDS API: Damage System Library for Minecraft Mods

MDS API gives mod developers damage calculation, enchantment queries, GUI helpers, and config tools for Minecraft. Build smarter combat mods today.

MDS API

Modding Minecraft combat is harder than it looks. Between armor values, enchantment bonuses, critical hits, and damage reduction, even a simple attack calculation can turn into a tangle of custom code. MDS API exists to take that weight off a developer's shoulders. It is a general-purpose library for Fabric that serves as the development companion to the Modern Damage System main mod, and it hands modders a clean set of tools for damage math, enchantment lookups, GUI screens, and configuration files.

If you are building a combat-focused add-on or simply want your mod to play nicely with the Modern Damage System ecosystem, this library is worth a serious look. Below we break down what it actually does, which versions it supports, and how to get it running.

What MDS API Actually Does

At its core, MDS API is a shared foundation. Instead of every mod reinventing the same calculations, the library exposes stable, reusable methods that other mods can call. The author, Juzipi_AN, designed it so that dependent mods stay consistent with the main Modern Damage System mod rather than drifting apart over time. It is released under the MIT License, which means you are free to use, modify, and distribute it in your own projects.

Damage Calculation API

The damage module is the heart of the library. It lets developers:

  • Read a weapon's base attack damage
  • Fetch player or entity critical rate and critical damage multipliers
  • Calculate final damage after critical hit processing
  • Access damage reduction, armor penetration, and other defensive attributes

This means a mod author can produce combat numbers that match the main mod's behavior without copying internal logic. If the main mod updates its formulas, dependent mods inherit the change automatically.

Enchantment Query API

Enchantments are another common headache. MDS API offers straightforward queries for retrieving the level of any specific enchantment on an item, and it can list every MDS enchantment present on an item along with its level. Unified query support covers all MDS enchantments, so you do not need special-case code for each one.

GUI Utility API

Custom screens in Fabric require careful lifecycle handling, and getting it wrong leads to crashes or stuck menus. The GUI utility layer opens custom screens with proper lifecycle management built in. It also provides common component rendering helpers plus screen scaling, positioning, and layout tools, which saves hours of fiddly pixel math.

Configuration Management API

Configuration is where many small mods fall apart. This library reads and writes JSON-based configuration files, lets you register typed config options, and supports hot-reloading configurations without restarting the game. Players can tweak values and see the effect immediately, which is a big quality-of-life win.

Supported Minecraft Versions and Loader

MDS API targets the Fabric mod loader and depends on Fabric API, so both must be present in your mods folder. It is built for modern Minecraft releases in the Fabric ecosystem; always check the project page for the exact game version matching your build, since the library is updated alongside the main Modern Damage System mod. Running a mismatched version is the most common cause of startup errors, so match the two carefully.

For players who prefer a hands-off approach, the foxygame.net launcher can handle the whole setup in a single click, pulling MDS API and its Fabric dependencies together with correct version matching so nothing conflicts. That removes the guesswork of hunting down the right build manually.

How to Install MDS API

Installation is quick if you already run Fabric:

  • Install the Fabric loader for your Minecraft version
  • Place Fabric API in the mods folder
  • Add the MDS API jar to the same mods folder
  • Add the Modern Damage System main mod if you want the full experience
  • Launch the game and confirm both mods load without errors

If you plan to download MDS API for Minecraft, grab the file that matches your game version and loader. Server owners should install it on both client and server when the dependent mod requires it, since damage calculations often run server-side.

Who Should Use It

This is primarily a developer tool. If you are writing a Fabric mod that touches combat, enchantments, custom menus, or config screens, MDS API for Minecraft removes a lot of boilerplate. Players generally install it only because another mod lists it as a dependency, and that is exactly how a good library should behave: quietly doing its job in the background.

Final Thoughts

MDS API is a focused, well-scoped library that solves real problems for Fabric modders. The damage and enchantment APIs keep combat math consistent, the GUI helpers cut down on screen code, and the configuration layer makes hot-reloading painless. Under the MIT License and backed by an active companion mod, it is a sensible foundation for anyone building on the Modern Damage System. Check your version, install Fabric API first, and you will be up and running in minutes.