DGLib
Modby MsDogGirl
Common code for MsDogGirl's mods. Includes dynamic skin swapping and emissive skin layer APIs.
Type
Mod
CurseForge Downloads
22,328
CurseForge ID
1452161
Last Updated
Apr 13, 2026
Description

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!
Seven Systems - Google Play Books There are links to more platforms and formats on my discord.
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…
Similar Mods
Ars Nouveau - Extended Glyphs
A quaint mod that adds a handful of glyphs and other things!
Tensura:No Game No Life
Tensura mod affiliate
Deepslate Diamond
Mod that simply changes that mining Deepslate and Deepslate ores now require Diamond pickaxe
Archaic Guns
Addon for Mr. Crayfish's Gun Mod adding medieval/fantasy guns.
Prodigium Dungeons
Custom made for the Prodigium Reforged modpack
Flexible Tools
Tools with a bunch of upgrades and abilities.