Life Skins
一款完全服务器端的模组,可根据玩家的生命值数量自动更换皮肤,无需重启 Minecraft!需要安装 Life Series 模组以进行生命值追踪。此外,该模组正常运行还需要 Fabric Tailor(希望在未来更新中将其变为可选依赖)。
由于此功能已整合至主模组中,本模组已被归档。如果你使用的版本尚未内置生命值皮肤功能且需要自定义构建版,请在 GitHub 上提交 Issue,我会为你制作。
使用方法
非常简单!每当你的生命值数量发生变化时(无论是通过死亡、命令还是自动分配),你的皮肤都会自动更新。它甚至会自动为子模组(sub-ins)更改皮肤! 不过需要进行一些设置,具体操作如下:
/lifeskins reload 如果自动重载失败,可手动将你的皮肤设置为与当前生命值对应的皮肤。
/lifeskins reload <target> 重新加载指定 <target> 参数中所有玩家的皮肤。目标可以是特定玩家或选择器。此命令仅管理员可执行。
/lifeskins setup 显示皮肤的设置说明。
/lifeskins skins 显示模组识别到的皮肤列表!非常适合检查设置是否正确!
如何设置
在配置文件夹中创建一个名为 "lifeskins" 的文件夹,然后在其中再创建一个以你的用户名命名的文件夹。
将你的皮肤放入其中,并将文件命名为激活该皮肤所需的最小生命值数量。
例如,如果你的用户名是 AtlasTheDummy,并且你希望在剩下一点生命时使用某款皮肤,那么该皮肤应位于 /config/lifeskins/AtlasTheDummy/1.png。
默认情况下,皮肤会被分配经典模型。如果你想使用纤细模型,请在你的皮肤文件夹中创建一个名为 "skins.json" 的文件,并填入以下内容:{ "slim": true }
皮肤可以在运行时更改,无需重启服务器。
高级选项
"skins.json" 除了是否使用纤细模型外,还包含更多设置。本节假设你已经熟悉 JSON 文件的编辑。你可以不重命名皮肤文件,而是在文件中初始化它们。为此,请创建一个 skins 数组。数组中的每个对象代表一个皮肤,并包含以下字段:
name - 你想用于该皮肤的文件名,例如 skin.png。
lives - 激活该皮肤所需的最小生命值数量,例如 4。
team - 可替代 lives 或与 lives 同时使用。当玩家所属团队的名称与此字段匹配时,将获得此皮肤。例如 lives_2、watcher 或任何自定义团队名称。
slim - 是否使用纤细模型。会覆盖文件中的全局设置。
请注意,如果在 skins 数组中定义了皮肤,游戏将停止自动搜索文件。
我可能会根据心情稍后为 skins.json 添加更多功能。
额外信息
我计划主要发布我自己会游玩的版本,因此可能会跳过某些版本。如果你有特别希望我发布的模组版本,欢迎通过 Discord(我的用户名是 dianacraft)或在 GitHub 上创建 Issue 联系我,我会为你制作!
感谢你体验这款模组!
Life Skins
A fully server-side mod for changing player skins depending on the life amount without needing to restart Minecraft! Requires the Life Series mod for lives tracking! Also requires Fabric Tailor to run properly (Hoping to make it optional in a future update) THIS MOD HAS BEEN ARCHIVED DUE TO ITS FUNCTIONALITY BEING ADDED TO THE MAIN MOD. IF YOU'D LIKE A CUSTOM BUILD FOR A VERSION THAT DOESN'T HAVE INNATE LIFESKINS, OPEN AN ISSUE ON GITHUB AND I'LL GET IT DONE FOR YOU
How to use
It's quite simple, really! Your skin will automatically update whenever your amount of lives changes, whether by death, commands, automatic assignment, you name it! It even automatically changes the skin for sub-ins! It requires some setting up though, how to do that is described below!
/lifeskins reload will manually set your skin to the one corresponding to your life amount if automatic reload failed
/lifeskins reload <target> will reload the skins of everyone specified in the <target> argument, can be either a specific player, or a selector. This command can only be run by an admin
/lifeskins setup will show setup instructions for skins
/lifeskins skins will show the skins the mod recognises! Great for checking if everything is set up correctly!
How to set up
In the config folder create a folder called "lifeskins", then in it create another, with your username as its name.
Put your skins inside, and name them after the minimum amount of lives needed for the skin to activate
For example if your username is AtlasTheDummy and you want a skin for when you have one life left, it would be located at /config/lifeskins/AtlasTheDummy/1.png
Automatically the skins are assigned the classic model, if you want the slim one, create a file called "skins.json" in your skin folder and put the following text inside: { "slim": true }
Skins can be changed at runtime and don't require a server restart.
Advanced
"skins.json" has more settings than just if it should use the slim model. This section assumes you already know how to work with json files. Instead of renaming your skins, you can initialise them in the file. To do that, create a skins array. Every object in the array represents a skin and has the following fields:
name - the name of the file you want to use for the skin, for example skin.png.
lives - the minimum amount of lives you need to have for the skin to activate, for example 4
team - can be used instead of lives, or in addition to it. Whenever a player is in a team that has a name matching to this field, this skin will be given. For example, lives_2, watcher, or any custom team.
slim - whether the slim model should be used. overrides the global field from the file
Keep in mind, having skins in the skins array stops the game from automatically searching for files.
I might add more functionality to skins.json later if I feel like it
Extra info
I plan to mainly release versions I myself am going to play on, so I will most likely skip a few. If there's a particular version you'd like me to release a version of the mod for, feel free to contact me either on Discord(my username is dianacraft) or by creating an issue on GitHub, and I'll get that done for you!
Thank you for enjoying the mod!
下载 Life Skins
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Life Skins
下载 Life Skins
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Life Skins
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Life Skins
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Life Skins
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Life Skins
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Life Skins
下载 Life Skins
下载 Life Skins
- 更新至 Life Series 1.4.5
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧