
基于 CustomSkinLoader 和 SkinsRestorer
专为 Better Than Adventure (BTA) 8.0.1 制作
它的作用是什么?
基本上,当你打开一个世界或加入服务器时,游戏会向 Mojang 的服务器查询与你的 Minecraft 用户名关联的皮肤。如果找不到任何皮肤,你就会使用默认的史蒂夫(Steve)。因此,这个模组会拦截该请求并以不同的方式进行搜索:如果 Mojang 没有找到任何皮肤,它会转而询问 ElyBy。
大致流程如下:
Mojang -> Ely.by -> Steve(无响应)
如果找不到皮肤……
那你运气不错,在这种情况下我们可以使用命令:
/rsl skin (set|clear|list|admin)
RSL 还可以从 URL 获取皮肤,这意味着它不限于少数几个提供商,尽情发挥吧。
命令是如何工作的?
RSL 使用由管理员在服务器中(或在你的 Minecraft 客户端或服务器的文件夹内,在 'RetroSkinLoader' 文件夹中搜索 skins_list.json)确定的皮肤池来工作,然后允许玩家从该池中选择一个皮肤。
例如:
/rsl skin admin adduser hi notch
/rsl skin set hi
另外……我已经很久没有开发 Minecraft 模组了,所以……如果你发现目前的使用体验有些粗糙,我会尽量在长期维护中让它变得更容易使用……
命令列表
-
/rsl skin set <id> : 将你的皮肤设置为池中选定 ID 对应的皮肤。
-
/rsl skin list : 显示池中所有可用的皮肤 ID。
-
/rsl skin clear : 将你的皮肤重置为默认状态。
-
/rsl skin admin add <id> <SkinURL> <(CapeURL | model)> <model> : 通过 URL 向池中添加皮肤,请注意对 URL 使用引号。<model> 使用 slim(纤细)或 default(默认)。
-
/rsl skin admin adduser <id> <username> : 通过用户名向池中添加皮肤。
-
/rsl skin admin remove <id> : 从池中移除一个皮肤。
我可以添加提供商吗?
当然可以,只要它与 RSLconfig.json 中的格式兼容,尽管去用吧。
鸣谢:
这两个模组启发了我为 Better Than Adventure 做类似的事情。如果没有这些模组及其优秀的开发者,我甚至不会想到这一点。源代码中也包含了 CSL 的部分内容,因为其系统设计(尽管有时这比帮助我解决问题更让我感到困惑)。

Based on CustomSkinLoader and SkinsRestorer
Made for Better Than Adventure (BTA) 8.0.1
What does it do?
Basically, upon opening a world or entering a server, the game asks Mojang's servers for a skin associated to your Minecraft name, so, if it doesn't find anything, you got Steve. So, this mod intercepts the call and searches in a different way, if Mojang doesn't find anything, it asks ElyBy.
Something like this:
Mojang -> Ely.by -> Steve (no response)
If it doesn't find skins...
Lucky you, in that case we have commands:
/rsl skin (set|clear|list|admin)
RSL can also fetch skins from URLs, which means it isn't limited to just a handful of providers, go crazy.
How do commands work?
RSL works using a pool of skins determined by an admin in a server (or in your minecraft's or server's folder, search for skins_list.json inside the 'RetroSkinLoader' folder), which then, allow the players to select a skin from that pool.
e.g.
/rsl skin admin adduser hi notch
/rsl skin set hi
Also... It's been a long time since I modded Minecraft so... I'll try making it easier to use on the long run if you find it a bit rough around the edges as of now...
Command list
-
/rsl skin set <id> : Sets your skin to the selected id on the pool.
-
/rsl skin list : Shows every skin id available in the pool.
-
/rsl skin clear : Resets your skin to default.
-
/rsl skin admin add <id> <SkinURL> <(CapeURL | model)> <model> : Adds a skin to the pool via URL, use quotation marks on the URLs tho. <model> uses slim or default.
-
/rsl skin admin adduser <id> <username> : Adds a skin to the pool via username.
-
/rsl skin admin remove <id> : Removes a skin from the pool.
Can I add providers?
Of course you can, if it's compatible with the format on RSLconfig.json, go nuts.
Shoutout to:
These two mods got me thinking about doing the same for Better Than Adventure, if it wasn't for these mods and their great developers, I wouldn't have even thought of it. Source Code also includes parts of CSL due to its system design (though sometimes it got me more confused than helping me to solve issues).
评论 0
登录后参与评分
还没有评论,来抢沙发吧