服务器聊天头像
请 Mojang 优化字体渲染
通过占位符在聊天中使用玩家头像及其他功能!感谢 CatDevz 制作了原始的 Minestom 代码。

工作原理
当玩家加入时,会下载其皮肤并提取面部像素的颜色,将其放入 User UUID, TextColor[][] 映射表中。当调用占位符时,它会在该映射表中查找用户,并尝试使用负空格和自定义像素字体在聊天中打印头像。
占位符
| 占位符 | 功能 |
|---|---|
%chatheads:player% |
打印发起者的头像 |
%chatheads:player [target]% |
打印目标玩家的头像 |
前沿构建版本
上游构建版本可通过 GitHub Actions 获取。
致谢
- CatDevz 制作了原始的 Minestom 代码
- Camper_Samu (我) 制作了 Fabric 移植版
- TheEpicBlock 用于 PolyMC
- Patbox 开发了 Polymer,它是 PolyMC 的一部分以及许多服务端模组(如本模组)的核心
- Fabric Server-Side Development Discord 在我制作此模组和其他模组(如 WAYF? 或 PolyForgery)期间提供了帮助
许可证
本模板遵循 GPLv3 许可证提供。您可以自由学习并根据许可证指南将其融入您自己的项目中。
Server Chat Heads
Plz Mojang optimize font rendering
Use player heads in chat and more via placeholders! Credits to CatDevz for making the original Minestom code.

How it works
When a player joins its skin gets downloaded and the colors of the pixels of the face get extracted and put in a User UUID, TextColor[][] Map, when the placeholder gets invoked, it searches for the user in that map and tries to print the head in chat using negative spaces and a custom pixel font.
Placeholders
| Placeholder | Function |
|---|---|
%chatheads:player% |
Print the invoker's head |
%chatheads:player [target]% |
Print the target's head |
Bleeding edge builds
Upstream builds are available in via GitHub Actions.
Credits
- CatDevz for making the original Minestom code
- Camper_Samu (me) for making the Fabric port
- TheEpicBlock for PolyMC
- Patbox for Polymer, a part of PolyMC and the core of many Serverside mods (like this one)
- Fabric Server-Side Development Discord for helping me while making this mod and other mods (like WAYF? or PolyForgery)
License
This template is available under the GPLv3 license. Feel free to learn from it and incorporate it in your own projects following the license's guidelines.
下载 Server Chat Heads
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Chat Heads
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Chat Heads
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Chat Heads
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Chat Heads
大家好,好久不见!
本次更新将 ServerChatHeads 适配至 1.21.1。 没有太多花哨的功能,也没有特别之处,Forgix 的移植版本仍在我计划中,等我有空时会进行开发。
祝游玩愉快!
更新日志
- 将模组移植至 1.21.1
- 更新了内置的 Polymer AutoHost
- 更新了内置的 Text Placeholder API
GitHub 发布页:
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧