
需要库模组 Collective (Fabric) 以及 Fabric API。
Just Player Heads 是一款极简主义模组,允许通过命令或死亡事件收集玩家头颅。所有头颅均通过纹理数据生成,类似于生物头颅,且不会造成卡顿。该模组通过 Mojang API 程序化获取纹理数据,并可在之后将其缓存到本地。
我还有一款名为 Just Mob Heads 的模组可供使用!
可配置项: (如何配置?)
enablePlayerHeadCaching (默认 = true):如果启用,则开启玩家头颅纹理的缓存功能。这可以解决 Mojang API 的限制问题,但意味着每当玩家更新皮肤时,旧的头颅仍会掉落,直到服务器重启或管理员使用 '/jph cache' 命令为止。
playerDropsHeadOnDeath (默认 = true):如果启用,允许玩家在死亡时掉落自己的头颅。
playerHeadDropChance (默认 = 1.0,最小值 0.0001,最大值 1.0):设置启用 'playerDropsHeadOnDeath' 后玩家掉落头颅的概率。
使用纹理值而非通过玩家名称生成
该模组使用纹理值来生成玩家头颅。这意味着不会出现通常由基于玩家名称生成的头颅所导致的卡顿。
纯原版资源
由于该模组不添加任何自定义方块,因此您可以移除该模组,而之前在游戏中收集的头颅仍然保留。
游戏内命令
如果您想在不触发死亡事件的情况下生成玩家头颅,可以通过 jph 命令来实现。其中玩家名称不区分大小写,数量是可选参数(默认数量为 1)。
/jph <playerName> (数量)
若要清空玩家头颅纹理缓存(如果在配置中启用了缓存),您可以重启服务器或使用以下命令:
/jph cache
Mojang API 请求限制
该模组使用 Mojang API 的 UUID -> Profile + Skin/Cape 功能。该功能的速率限制较为严格:您每分钟只能请求同一个个人资料一次,但可以发送任意数量的唯一请求。这意味着当 API 限制其生成时,有时模组无法生成头颅。** 纹理缓存功能可以通过将头颅纹理数据保存在本地来解决此问题。
------------------
只要下载源保持在 CurseForge 生态系统内,您就可以在任何整合包中自由使用该模组。
Serilum.com 提供了所有可用模组的概览及更多信息。
评论功能已禁用,因为我无法追踪每个模组单独页面上的所有评论。
如有问题、想法、建议或其他事宜,请访问 Github 仓库。谢谢!

Requires the library mod Collective (Fabric) and the Fabric API.
Just Player Heads is a minimalistic mod that allows the collection of player heads via a command or death event. All heads are generated similar to a mob head via texture-data, lag free. The mod procedurally retrieves texture data via the Mojang API, and can cache them locally after.
I've also got a Just Mob Heads mod available!
Configurable: ( how do I configure? )
enablePlayerHeadCaching (default = true): If enabled, enables the caching of player head textures. This fixes the limitations of the Mojang API, but does mean that whenever players update their skin the old head is still dropped until the server reboots or an administator uses the '/jph cache' command.
playerDropsHeadOnDeath (default = true): If enabled, allows players to drop their head on death.
playerHeadDropChance (default = 1.0, min 0.0001, max 1.0): Sets the chance of a player dropping their head if 'playerDropsHeadOnDeath' is enabled.
Texture values instead of generation via player-names
The mod uses texture values to generate the player heads. This means that there won't be any lag, which player-name generated heads usually cause.
Pure Vanilla Resources
Because the mod does not add any custom blocks, you may remove the mod and still have the heads previously gathered in-game.
In-game commands
If you want to generate a player head without any death event, you may do so via the jph command. Where the player name ignores capitalisation and the amount is optional (default amount is 1).
/jph <playerName> (amount)
To empty the player head texture cache (if enabled in the config) you can reboot the server or use the following command:
/jph cache
Mojang API request limitations
The mod uses the UUID -> Profile + Skin/Cape function of the Mojang API. This has quite a strict rate limit: You can request the same profile once per minute, however you can send as many unique requests as you like. This means that sometimes the mod is unable to generate a head if the API limits its generation. The texture caching feature can fix this by saving the head texture data locally.
------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧