跳到正文

Duchessentials

作者:Duuchniuk

A lightweight library mod providing essential utilities and APIs for Minecraft mod development. Includes logging system, string/math/collection helpers, and mod registration API.

收藏

介绍

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

DuchEssentials

DuchEssentials is a small utility library made mainly for my Minecraft mods and plugins, but it can also be used by other developers.

It contains a few common systems and helpers that I kept rewriting between projects, so I decided to put them into one library instead.

What’s included?

  • DuchLogger – simple logging system for mods
  • DuchAPI – basic API for registering mods
  • Utilities – various helpers for strings, math and collections

The library doesn’t add any gameplay content by itself. It’s just a dependency that other projects can use.

Example

DuchLogger.ModLogger logger =
        DuchLogger.createLogger("modid", "ModName");

DuchAPI.registerMod(
        "modid",
        "ModName",
        "1.0.0"
);

If your mod uses DuchEssentials, add it as a dependency:

"duchessentials": ">=1.0.0"

That’s pretty much it. The goal is just to keep commonly used code in one place instead of copying the same utilities into every project.

常见问题

Duchessentials 支持哪些 Minecraft 版本?

Duchessentials 支持 Minecraft Java 版 1.21–26.2,共 9 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Duchessentials 怎么安装?

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

评论

登录后评论和评分

Duuchniuk 的其他作品

查看全部 →