跳到正文

MDS API

作者:JuzipiAN

A general-purpose API library for Minecraft Fabric, providing damage calculation, enchantment queries, GUI utilities, and configuration management for the Modern Damage System mod.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

MDS API / Modern Damage System API

A general-purpose API library for Minecraft Fabric, designed as the development companion for the Modern Damage System main mod.


Features

Damage Calculation API

  • Get weapon base attack damage
  • Get player/entity critical rate and critical damage multipliers
  • Calculate final damage after critical hit processing
  • Access damage reduction, armor penetration, and defensive attributes

Enchantment Query API

  • Retrieve the level of any specific enchantment on an item
  • List all MDS enchantments present on an item with their levels
  • Unified query support for all MDS enchantments

GUI Utility API

  • Open custom screens with proper lifecycle management
  • Common component rendering helpers
  • Screen scaling, positioning, and layout tools

Configuration Management API

  • Read and write JSON-based configuration files
  • Register typed config options
  • Hot-reload configurations without restarting

Dependencies

  • Fabric API

Links


License

MIT License — free to use, modify, and distribute.


Author

Juzipi_AN

常见问题

MDS API 支持哪些 Minecraft 版本?

MDS API 支持 Minecraft Java 版 26.2–26.3,共 2 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

MDS API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

JuzipiAN 的其他作品

查看全部 →