跳到正文

DGLib

作者:MsDogGirl

Common code for MsDogGirl's mods. Includes dynamic skin swapping and emissive skin layer APIs.

收藏

介绍

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

My character in a library. Appropriate.

DGLib – Overview

If you’re not a dev, this is another boring library mod. Just install it with the mod that requires it- that’s all there is to it.

If you are a dev, then this is a another not-so-boring library mod. It has two APIs included, SkinSwapper and SkinGlowLayer, which I use in my mod Cyberware: Visible Modifications. The names pretty much say what they do.

Feature – SkinSwapper API (For Developers)

You can find all the methods included on the GitHub page. Their function is simple: they swap out parts of the player skin with a skin file you’ve provided. You can swap out any part of the player’s skin like their arms and legs, but leave the rest of their skin untouched.

There are also methods to add transparent overlays to a skin in the same way. For example, this is useful if you’re making something like armor and want it to have a bit of a tighter fit without fussing with render layers yourself.

But how does it do this, you ask? Well, it actually fetches the player’s skin and makes a compound image to load instead. No render layers involved here, keeping compatibility with other mods at a max.

Feature – SkinGlowLayer API (For Developers)

This works the same as the SkinSwapper, but instead adds emissive pixels to the player skin via a render layer. You just need a transparent image with the pixels you want to glow and use that when you call the methods.

Compatibility (For Developers)

This depends on the you and your use case as a dev. SkinGlowLayer, however, has some compat built in with Epic Fight. It will turn itself off in fight mode, preventing visual glitches… for the most part.

Modpacks?

If you’re publishing it, it needs to be on either Modrinth or CurseForge.

Interested in reading sci-fi / fantasy? Check out my books!

Get the first one free here: Seven Systems – Google Play Books

In the stars above, an ancient evil stirs.

An artifact of vast power will shake the foundations of the seven star systems inhabited by all living beings. In the coming storm, only those who have lived in its shadow can stand against evil. A group tied together by the threads of fate and prophesy embark on a quest through the vast worlds of The Seven Systems, and fight those who would succumb to the temptation of darkness. The prince. His brother. The twin guards. The thief. The one who changed, and will change. Will they stand together long enough to do what is necessary… or pay the price? Will the worlds see their next sunrise, the dawn of a new age, or will all fall to the forces of evil? As the scales of power tip and swing, the worlds will never be the same.

With the new day, The Seven Systems are cast into the flames…

常见问题

DGLib 支持哪些 Minecraft 版本?

DGLib 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

DGLib 怎么安装?

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

评论

登录后评论和评分

MsDogGirl 的其他作品

查看全部 →