Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

如何配置皮肤 Mod

621sama edited this page Feb 9, 2018 · 1 revision

Blessing Skin 只是一个皮肤站程序,仅仅是提供了上传、存储、检索、分享玩家皮肤的功能。想要在 Minecraft 游戏中显示您之前在皮肤站中上传的皮肤的话,您还需要「自定义皮肤 Mod」的帮助。

目前 Blessing Skin 支持的皮肤 Mod 有:

具体配置方法请继续阅读。


CustomSkinLoader 13.1 及以上(推荐)

CustomSkinLoader 13.1 经过作者的完全重写,支持了 CSL API,并且使用了高端洋气的 JSON 配置文件。你问我 JSON 是什么?为什么不去问问神奇海螺呢。

配置文件位于 .minecraft/CustomSkinLoader/CustomSkinLoader.json,你需要在 loadlist 数组最顶端加入你的皮肤站配置。

举个栗子(原来的 JSON 长这样):

{
    "enable": true,
    "loadlist": [
        {
            "name": "Mojang",
            "type": "MojangAPI"
        },
        {
            "name": "SkinMe",
            "type": "UniSkinAPI",
            "root": "http://www.skinme.cc/uniskin/"
        }
    ]
}

你需要将其修改成像这样:

{
    "enable": true,
    "loadlist": [
        {
            "name": "YourSkinServer",
            "type": "CustomSkinAPI",
            "root": "http://example.com/"
        },
        {
            "name": "Mojang",
            "type": "MojangAPI"
        },
        {
            "name": "SkinMe",
            "type": "UniSkinAPI",
            "root": "http://www.skinme.cc/uniskin/"
        }
    ]
}

"type" 字段按照你的后台中配置的首选 API 来填(CustomSkinAPI|UniSkinAPI),CSL 13.1 版是支持三种加载方式的万受♂之王

如果还是不会填的话,请查看 CSL 开发者的 MCBBS 发布贴

CustomSkinLoader 13.1 版以下:

.minecraft/CustomSkinLoader/skinurls.txt 中添加你的皮肤站地址:

http://example.com/skin/*.png
http://skins.minecraft.net/MinecraftSkins/*.png
http://minecrack.fr.nf/mc/skinsminecrackd/*.png
http://www.skinme.cc/MinecraftSkins/*.png

注意你需要将你的皮肤站地址放在配置文件最上方以优先加载。

同理在 .minecraft/CustomSkinLoader/capeurls.txt 中加入:

http://example.com/cape/*.png

UniSkinMod 1.4 版及以上(推荐)

配置文件位于 .minecraft/config/UniSkinMod/UniSkinMod.json

举个栗子(原来的 JSON 长这样):

{
  "rootURIs": [
    "http://www.skinme.cc/uniskin",
    "https://skin.prinzeugen.net"
  ],
  "legacySkinURIs": [],
  "legacyCapeURIs": []
}

你需要在 rootURIs 字典中加入你的皮肤站的地址:

{
  "rootURIs": [
    "http://www.skinme.cc/uniskin",
    "https://skin.prinzeugen.net",
    "http://example.com"
  ],
  "legacySkinURIs": [],
  "legacyCapeURIs": []
}

如果你的皮肤站首选 API 为 CustomSkinLoader API 的话,你需要在 UniSkinMod 配置文件中填入类似于 http://example.com/usm (添加后缀)来支持 UniSkinMod。

配置 rootURIs 后,legacySkinURIslegacyCapeURIs 可以不用配置。详见文档

UniSkinMod 1.2 及 1.3 版

在你 MC 客户端的 .minecraft/config/UniSkinMod.cfg 中加入你的皮肤站根地址:

举个栗子:

# SkinMe Default
Root: http://www.skinme.cc/uniskin
# Your Server
Root: http://example.com

UniSkinMod 1.2 版以下

同样是在 .minecraft/config/UniSkinMod.cfg 中配置你的皮肤站地址,但是稍有点不一样。旧版的 UniSkinMod 是不支持 Json API 的,而是使用了传统图片链接的方式(其实这样的话皮肤站也好实现):

举个栗子:

Skin: http://skins.minecraft.net/MinecraftSkins/%s.png
Cape: http://skins.minecraft.net/MinecraftCloaks/%s.png
# Your Server
Skin: http://example.com/skin/%s.png
Cape: http://example.com/cape/%s.png

这是通过 URL 重写(伪静态)实现的,所以皮肤站目录下没有 skincape 目录也不要惊讶哦。

如果一切都正常工作,你就可以在游戏中看到你的皮肤啦~


Mod Configuration

Blessing Skin Server only implements the API which is defined by skin mod and provides friendly web pages to manage skins in an easier way.

To show your skins in game, you have to configure your skin mod correctly as uploading your skins to skin server.

There the mod we supported are: CustomSkinLoader and Universal Skin Mod.

For CustomSkinLoader 13.1 and higher (recommended)

The configuration is located in .minecraft/CustomSkinLoader/CustomSkinLoader.json, and it is just like this:

{
    "enable": true,
    "loadlist": [
        {
            "name": "Mojang",
            "type": "MojangAPI"
        },
        {
            "name": "SkinMe",
            "type": "UniSkinAPI",
            "root": "http://www.skinme.cc/uniskin/"
        }
    ]
}

The important thing you need to do is to add the root url of your skin server to the loadlist dict:

{
    "enable": true,
    "loadlist": [
        {
            "name": "YourSkinServer",
            "type": "CustomSkinAPI",
            "root": "http://example.com/"
        },
        {
            "name": "Mojang",
            "type": "MojangAPI"
        },
        {
            "name": "SkinMe",
            "type": "UniSkinAPI",
            "root": "http://www.skinme.cc/uniskin/"
        }
    ]
}

The field type should be same with your API that configurated in the options of skin srever.

For CustomSkinLoader 12.9 and lower

Add your urls to the configuration file located in .minecraft/CustomSkinLoader/skinurls.txt:

# Notice: You should put your url on the top to make it be loaded first
http://example.com/skin/*.png
http://skins.minecraft.net/MinecraftSkins/*.png
http://minecrack.fr.nf/mc/skinsminecrackd/*.png
http://www.skinme.cc/MinecraftSkins/*.png

Also add it in .minecraft/CustomSkinLoader/capeurls.txt:

http://example.com/cape/*.png

UniSkinMod 1.4 and higher (recommended)

The configuration file is located in .minecraft/config/UniSkinMod/UniSkinMod.json.

You should modify it from:

{
  "rootURIs": [
    "http://www.skinme.cc/uniskin",
    "https://skin.prinzeugen.net"
  ],
  "legacySkinURIs": [],
  "legacyCapeURIs": []
}

to this:

{
  "rootURIs": [
    "http://www.skinme.cc/uniskin",
    "https://skin.prinzeugen.net",
    "http://example.com"
  ],
  "legacySkinURIs": [],
  "legacyCapeURIs": []
}

which means adding your url of skin server to the dict rootURIs.

There is a documentation for USM 1.4+, check it here.

UniSkinMod 1.2 & 1.3

Put your root urls to .minecraft/config/UniSkinMod.cfg:

# SkinMe Default
Root: http://www.skinme.cc/uniskin
# Your Server
Root: http://example.com

UniSkinMod 1.2 and lower

The configuration file is also located in .minecraft/config/UniSkinMod.cfg, but you should add the legacy links in instead of root urls:

Skin: http://skins.minecraft.net/MinecraftSkins/%s.png
Cape: http://skins.minecraft.net/MinecraftCloaks/%s.png
# Your Server
Skin: http://example.com/skin/%s.png
Cape: http://example.com/cape/%s.png
Clone this wiki locally