AngelLib
AngelLib 1.0.0 取代了 FentLib。这是一个破坏性更新:请同时更新依赖此库的模组;不再支持旧版包、模组 ID、网络载荷和配置路径。 一个共享代码库及调整/修复模组。

功能
- 支持动态 GIF 服务器图标。只需将
server-icon.gif文件放入服务器根目录即可。大小限制可配置。HodgePodge 为软依赖,若需使用更大的 GIF(由于数据包大小限制)则必须安装。
使用 /reload_icon命令重新加载图标。该功能同样适用于server-icon.png。 - 用于修改
S00PacketServerInfo数据包的 API。示例:
public class ClientProxy extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
S00PacketServerInfoModifyService.registerDeserializeHandler((response, angellibData, serverData) -> {
if (angellibData.has("server_to_client_payload")) {
// 哇哦,我们收到了反馈!!!!
// serverData 包含诸如服务器 IP 等信息
}
});
}
}
```java
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
if (MiscUtil.isServer()) {
S00PacketServerInfoModifyService.registerHandler((response, angelLibPresent) -> {
// angelLibPresent 只是一个布尔值,表示是否已加载 angellib
return "server_to_client_payload";
// 你可以返回一个 String、S00PacketServerInfoModifyService.KeyValue 或 JsonElement。如果你返回非 null 值,它将被传回客户端
});
}
}
}
-
/dump_thaumonomicon <可选注释>命令。在客户端运行该命令,所有 Thaumcraft 的研究内容将被导出为一个静态网站。注释将显示在页面标题下方,您可以借此标明导出时所使用的整合包或模组。
-
/warpdim[dimension ID] 命令。无痛传送至某个维度(旨在用于调试)。 -
SessionAccessTokenOverrideMixin允许通过-Dangellib.accessTokenOverride=<token>在开发启动时覆盖会话访问令牌。 -
客户端声音工具,用于在不增加音量的情况下设置自定义的最大衰减距离。方法:
SoundUtil.withMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(SoundHandler soundHandler, ISound sound, float maxDistance);
SoundUtil.playAt(ResourceLocation soundResource, double x, double y, double z, float volume, float pitch, float maxDistance);
示例:
SoundUtil.playAt(waveSound, x, y, z, 0.25F, 1.0F, 64.0F);
- 通过 Minecraft 端口对本地 Web UI 进行反向代理。在
config/angellib/http-port-routes.json中配置路径到端口的映射,以便像 Dynmap 这样的服务可以通过服务器端口(例如/dynmap/...)访问,而不是单独的端口。 在config/angellib/angellib.cfg中设置publicBaseUrl为服务器的公共基础 URL;模组应在此基础上附加其相对路由路径。 - QOI 图像格式支持及工具,感谢 saharNooby/qoi-java。如需使用示例,请查看
server-icon.qoi支持的实现方式。 - WebP 图像格式支持及工具,感谢 haraldk/TwelveMonkeys。如需使用示例,请查看
server-icon.webp支持的实现方式。 - 默认服务器图标路径可通过
serverIconDirectory配置项进行配置。
钓鱼掉落配置
在 config/angellib/angellib.cfg 中设置 enableFishingLootTable=true 以启用 AngelLib 的钓鱼覆盖功能。掉落表位于 config/angellib/fishing-loot.json。启用后,原版仍会判定捕获物是 fish(鱼)、junk(垃圾)还是 treasure(宝藏),但具体物品仅从此 JSON 文件中获取。
该 JSON 文件包含顶层的 fish、junk 和 treasure 列表。每个条目采用原版风格的 weight,支持 count 和 meta 的范围设置;可通过 biomes 限制为生物群系白名单,或通过 invertBiomes 转换为黑名单。生物群系选择器可以是数值 ID、生物群系名称或用于匹配任意生物群系的 *。条目还可使用显式的数值附魔 ID,或使用 useVanillaEnchantingRules 以原版风格的随机附魔规则。
{
"fish": [
{
"item": "minecraft:fish",
"weight": 60,
"count": { "min": 1, "max": 1 },
"meta": { "min": 0, "max": 0 }
},
{
"item": "minecraft:fish",
"weight": 10,
"count": { "min": 1, "max": 2 },
"meta": { "min": 1, "max": 1 },
"biomes": ["ocean", "river"]
}
]
}
补丁说明
- 移除模组列表界面中 EnderCore / HodgePodge 的信息按钮。
- 为 LOTR 地图的玩家头像提供现代皮肤支持。
- 为 Better Questing 提供现代皮肤支持。
- 修复 Server Tools 在单人游戏中因 Wawel Auth 导致的崩溃问题。
- 为 Server Utilities 提供现代皮肤支持。
依赖项
构建方法
./gradlew build.
致谢
许可证
LGPLv3.
请我喝杯咖啡
- Monero:
893tQ56jWt7czBsqAGPq8J5BDnYVCg2tvKpvwTcMY1LS79iDabopdxoUzNLEZtRTH4ewAcKLJ4DM4V41fvrJGHgeKArxwmJ

AngelLib
AngelLib 1.0.0 replaces FentLib. This is a breaking release: update dependent mods together; old packages, mod IDs, network payloads, and configuration paths are not supported. A shared code library and tweak/fix mod.

Features
- Support for animated GIF server icons. Just drop a
server-icon.giffile in the server root directory. Size limits are configurable. HodgePodge is a soft dependency, required if you want to use larger GIFs (because of the packet size limit).
Use the /reload_iconcommand to reload the icon. Also works forserver-icon.png. - API to modify the
S00PacketServerInfopacket. Example:
public class ClientProxy extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
S00PacketServerInfoModifyService.registerDeserializeHandler((response, angellibData, serverData) -> {
if (angellibData.has("server_to_client_payload")) {
// Yoohoo we got something back!!!!
// serverData contains stuff like server IP
}
});
}
}
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
if (MiscUtil.isServer()) {
S00PacketServerInfoModifyService.registerHandler((response, angelLibPresent) -> {
// angelLibPresent is just a boolean indicating whether angellib is loaded
return "server_to_client_payload";
// You can return a String, a S00PacketServerInfoModifyService.KeyValue, or a JsonElement. If you return
// a non-null value, it will be passed back to the client
});
}
}
}
/dump_thaumonomicon <Optional Comment>command. Run it from the client, and all Thaumcraft research will be dumped as a static website. The comment will be visible under the page title, and you can indicate the pack or mods for with which the dump was done.
/warpdim[dimension ID] command. Painlessly warp to a dimension (meant for debugging).SessionAccessTokenOverrideMixinallows overriding the session access token in dev launches via-Dangellib.accessTokenOverride=<token>.- Client sound utilities to set a custom max attenuation distance without increasing the sound volume. Methods:
SoundUtil.withMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(ISound sound, float maxDistance);
SoundUtil.playWithMaxDistance(SoundHandler soundHandler, ISound sound, float maxDistance);
SoundUtil.playAt(ResourceLocation soundResource, double x, double y, double z, float volume, float pitch, float maxDistance);
Example:
SoundUtil.playAt(waveSound, x, y, z, 0.25F, 1.0F, 64.0F);
- HTTP-on-Minecraft-port reverse proxying for local web UIs. Configure path-to-port mappings in
config/angellib/http-port-routes.jsonso services like Dynmap can be reached through the server port, such as/dynmap/..., instead of separate ports. SetpublicBaseUrlinconfig/angellib/angellib.cfgto the public base URL of the server; mods should append their own relative route paths on top of it. - QOI image format support and utils thanks to saharNooby/qoi-java. For usage example, check out how support for
server-icon.qoiis implemented. - WebP image format support and utils thanks to haraldk/TwelveMonkeys. For usage example, check out how support for
server-icon.webpis implemented. - Default server icon path can be configured using the
serverIconDirectoryconfig option.
Fishing Loot Config
Set enableFishingLootTable=true in config/angellib/angellib.cfg to enable AngelLib's fishing override. The loot table lives at config/angellib/fishing-loot.json. When enabled, vanilla still decides whether a catch is fish, junk, or treasure, but the item itself comes only from this JSON.
The JSON has top-level fish, junk, and treasure lists. Each entry uses vanilla-style weight, supports count and meta ranges, can be limited to a biome whitelist with biomes or inverted into a blacklist with invertBiomes, and biome selectors can be numeric IDs, biome names, or * to match any biome. Entries can also use explicit numeric enchant IDs or useVanillaEnchantingRules for vanilla-style random enchanting.
{
"fish": [
{
"item": "minecraft:fish",
"weight": 60,
"count": { "min": 1, "max": 1 },
"meta": { "min": 0, "max": 0 }
},
{
"item": "minecraft:fish",
"weight": 10,
"count": { "min": 1, "max": 2 },
"meta": { "min": 1, "max": 1 },
"biomes": ["ocean", "river"]
}
]
}
Patches
- Removal of EnderCore / HodgePodge Info Button in the mod list screen.
- LOTR map player face modern skin support.
- Better Questing modern skin support.
- Server Tools singleplayer crash with Wawel Auth fix.
- Server Utilities modern skin support.
Dependencies
Building
./gradlew build.
Credits
License
LGPLv3.
Buy me a coffee
- Monero:
893tQ56jWt7czBsqAGPq8J5BDnYVCg2tvKpvwTcMY1LS79iDabopdxoUzNLEZtRTH4ewAcKLJ4DM4V41fvrJGHgeKArxwmJ

下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
下载 AngelLib
AngelLib 1.0.2
- AngelLib 客户端现在在握手阶段使用端口 0 标记其服务器列表 ping,而不是在主机名后添加后缀。通过主机名进行路由的中继(例如 e4mc)会拒绝该后缀,导致 AngelLib 客户端将每个 e4mc 世界显示为“未知服务器”。服务器端仍会识别来自旧版客户端的后缀。
- 修复了本应仅发送给 AngelLib 客户端(例如 Wawel Auth)的额外服务器列表数据随每次后续 ping 一并发送的问题。
AngelLib 1.0.1
- 在启用 Et Futurum Requiem 的现代加载屏幕后,AngelLib 不再在正常游玩时关闭 ArchaicFix 的
MixinMinecraft,从而保留 ArchaicFix 的其他修复功能。其中一项修复会在窗口报告自身处于非活动状态时保持游戏全屏运行;因此在使用 lwjgl3ify 时,游戏无法维持全屏状态(#6)。这两个模组之间的冲突仅会导致 ArchaicFix 的工作屏幕失效,并伴随一条警告信息。AngelLib 仍在开发环境中解决该问题,因为在开发模式下 Mixin 的注入检查会阻止启动。
AngelLib 1.0.0
FentLib 现已更名为 AngelLib,成为 Angelic Industries 旗下的一部分。
- 破坏性更新: Java 包路径已变更为
industries.angelic.angellib;模组 ID 和资源/配置命名空间均为angellib。请一并更新所有依赖该模组的模组。 - Maven 坐标:
industries.angelic.angellib:AngelLib:1.0.0(开发环境请使用devclassifier)。 - 更新了徽标、Catalogue 动态背景、项目链接以及发布基础设施。
- 普通版本与 CurseForge 变体均采用了新的标识。
- 更新了开发依赖项及 GTNH 构建规范至 2.0.34 版本。Angelica 2.2.33 包含了启动所需的 glint mixin 验证修复。
现有的 FentLib 配置、集成内容以及网络负载不会自动迁移。历史版本的 FentLib 仍可获取。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧