ImageFrame (Fabric 移植版)
这是广受欢迎的 Spigot 插件 ImageFrame by LoohpJames 的高性能、通用 Fabric 移植版本。支持在地图和墙壁上放置图片及动态 GIF,并原生支持高清(HD)画质!
本项目是一个混合(通用)模组:对于原版客户端,它完全在服务器端运行;而在客户端安装时,则提供原生高清地图渲染、即时 HD GIF 动画同步以及物品栏悬停预览提示等功能。

重要免责声明与维护说明
- 支持与维护: 此移植版最初是为我与朋友们的私人服务器创建的。因此,请勿期望会有定期更新、积极维护或保证的 Bug 修复。
- 未来更新: 虽然不保证持续支持,但如果为了我们私人服务器的正常运行需要修复关键 Bug 或进行兼容性更新,可能会发布相关补丁。
- 原作者邀请: 如果原作者 (LoohpJames) 希望改编、使用或将此 Fabric 移植版的任何代码合并到官方项目中,我们热烈欢迎并鼓励这样做!
- Fabric 移植版开发者: 由 reyhe66243 开发并针对 Fabric 进行了优化。
- 致谢: 衷心感谢 LoohpJames 设计了原始的 Spigot 插件架构、资源加载器及整体结构。
通用架构与客户端兼容性
请在服务器和客户端上使用完全相同的模组 JAR 文件。不要使用原始客户端模组,因为本移植版依赖于经过更新的、兼容 GIF 的网络通信架构。
- 原版客户端: 无需安装任何客户端模组即可连接。地图将以标准 Minecraft 分辨率(128x128)平滑显示。
- 模组客户端(已安装本模组): 会自动与服务器进行后台握手,以请求原生高清(HD)图像纹理、即时 HD GIF 动画帧同步以及物品栏悬停预览提示。
模组兼容性与优化说明
如果您使用了 ImmediatelyFast,必须禁用其地图图集优化功能:
- 在
config/immediatelyfast.json文件中设置"map_atlas_generation": false。 - 原因: ImmediatelyFast 的
map_atlas_generation会将所有地图纹理强制打包为低分辨率的 128x128 图集,这会覆盖并裁剪高清纹理。禁用map_atlas_generation后,ImageFrame 可以全高清渲染,而 ImmediatelyFast 仍可继续优化您其余 99% 的图形性能(字体、HUD、告示牌、GUI、缓冲区等)。 - 本模组包含自动检测逻辑,会在启动时尝试禁用此设置。
配置与权限
Fabric 版的 ImageFrame 拥有精简且功能完整的 config/ImageFrame/config.yml 配置文件,并且权限系统与原版 Spigot 插件保持 1:1 的对等。
主要配置选项
RequireEmptyMaps: 要求生存模式玩家手持空地图(width * height)才能创建或获取图像地图。MaxSize: 限制地图尺寸(以方块为单位),以防止服务器卡顿。PlayerCreationLimit: 限制每个玩家或组别可以创建的最大地图数量。RestrictImageUrl: 域名白名单(例如 Imgur, Discord CDN),用于限制玩家可以从哪些来源下载图像。CombinedByDefault: 执行/imageframe get <name>命令时,默认直接给予合并后的地图物品,而不是分开的地图图块。InvisibleFrame: 配置生存模式下隐形物品框转换的药水溅射效果。
权限与 LuckPerms
通过 fabric-permissions-api-v1 和原生 Minecraft OP 等级兼容 LuckPerms(用户命令默认为 Level 0 / 所有玩家):
| 命令 / 功能 | 权限节点 | 默认访问权限 |
|---|---|---|
/imageframe create |
imageframe.create |
所有玩家 |
/imageframe get |
imageframe.get |
所有玩家(仅限自己的地图) |
| 管理他人的地图 | imageframe.get.others, imageframe.delete.others |
OP 等级 2 |
/imageframe delete |
imageframe.delete |
所有玩家(仅限自己的地图) |
/imageframe rename |
imageframe.rename |
所有玩家(仅限自己的地图) |
/imageframe refresh |
imageframe.refresh |
所有玩家(仅限自己的地图) |
/imageframe playback |
imageframe.playback |
所有玩家 |
/imageframe select |
imageframe.select |
所有玩家 |
/imageframe list |
imageframe.list |
所有玩家(显示自己的地图) |
| 查看服务器上的所有地图 | imageframe.list.others |
OP 等级 2 |
| 地图创建限制层级 | imageframe.createlimit.<group> |
配置中自定义层级 |
| 无限创建地图 | imageframe.createlimit.unlimited |
OP 等级 2 |
| 完整管理员绕过 | imageframe.admin |
OP 等级 2 |
/imageframe reload |
imageframe.reload |
OP 等级 2 |
/imageframe language |
imageframe.admin |
OP 等级 2 |
ImageFrame (Fabric Port)
A high-performance, universal Fabric port of the popular Spigot plugin ImageFrame by LoohpJames. Put images and animated GIFs on maps and walls with native high-definition (HD) support!
This project is a hybrid (Universal) mod: it functions completely server-side for vanilla clients, while offering native HD map rendering, instant HD GIF animation synchronization, and inventory item preview tooltips when installed on the client.

Important Disclaimer & Maintenance
- Support & Maintenance: This port was created for a private server with friends. As such, do not expect regular updates, active maintenance, or guaranteed bugfixes.
- Future Updates: While support is not guaranteed, critical bugs or compatibility updates might be released if they are needed for our personal server.
- Original Creator Invitation: If the original author (LoohpJames) wishes to adapt, use, or merge any part of this Fabric port code into the official project, they are warmly welcomed and encouraged to do so!
- Fabric Port Developer: Developed and optimized for Fabric by reyhe66243.
- Credits: Huge credits to LoohpJames for the original Spigot plugin design, asset loaders, and architecture.
Universal Architecture & Client Compatibility
Use this exact same mod JAR on both the server and client. Do not use the original client mod, as this port relies on an updated, GIF-compatible networking architecture.
- Vanilla Clients: Can connect without installing any client-side mod. Maps will display smoothly in standard Minecraft resolution (128x128).
- Modded Clients (with this mod): Automatically perform a background handshake with the server to request native High-Definition (HD) image textures, instant HD GIF animation frame synchronization, and inventory hover tooltips.
Mod Compatibility & Optimization Notes
If you use ImmediatelyFast, you must disable its map atlas optimization feature:
- Set
"map_atlas_generation": falseinside yourconfig/immediatelyfast.jsonfile. - Reason: ImmediatelyFast's
map_atlas_generationforces all map textures into a low-resolution 128x128 atlas, which overrides and crops HD textures. Disablingmap_atlas_generationallows ImageFrame to render in full HD while ImmediatelyFast continues optimizing 99% of your other graphics performance (fonts, HUD, signs, GUI, buffers). - This mod includes automatic detection logic to attempt disabling this setting at launch.
Configuration & Permissions
ImageFrame on Fabric features a streamlined, fully functional config/ImageFrame/config.yml and 1:1 permission parity with the original Spigot plugin.
Key Configuration Options
RequireEmptyMaps: Require survival players to hold empty maps (width * height) to create or retrieve image maps.MaxSize: Limit map dimensions (in blocks) to prevent server lag.PlayerCreationLimit: Limit the maximum number of maps each player or group can create.RestrictImageUrl: Domain whitelist (e.g. Imgur, Discord CDN) to restrict where players can download images from.CombinedByDefault: Automatically give combined map items instead of separate map tiles when running/imageframe get <name>.InvisibleFrame: Configure survival potion splash conversions for invisible item frames.
Permissions & LuckPerms
Compatible with LuckPerms via fabric-permissions-api-v1 and native Minecraft OP levels (user commands default to Level 0 / all players):
| Command / Feature | Permission Node | Default Access |
|---|---|---|
/imageframe create |
imageframe.create |
All players |
/imageframe get |
imageframe.get |
All players (own maps) |
| Manage others' maps | imageframe.get.others, imageframe.delete.others |
OP Level 2 |
/imageframe delete |
imageframe.delete |
All players (own maps) |
/imageframe rename |
imageframe.rename |
All players (own maps) |
/imageframe refresh |
imageframe.refresh |
All players (own maps) |
/imageframe playback |
imageframe.playback |
All players |
/imageframe select |
imageframe.select |
All players |
/imageframe list |
imageframe.list |
All players (shows own maps) |
| View all server maps | imageframe.list.others |
OP Level 2 |
| Map creation limit tier | imageframe.createlimit.<group> |
Custom tiers in config |
| Unlimited map creation | imageframe.createlimit.unlimited |
OP Level 2 |
| Full admin bypass | imageframe.admin |
OP Level 2 |
/imageframe reload |
imageframe.reload |
OP Level 2 |
/imageframe language |
imageframe.admin |
OP Level 2 |
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
下载 ImageFrame Fabric Port
- 修复了 Lunar Client 上的启动崩溃问题 (#9) — 更新了内置的
Simple-Yaml至1.8.4(包含重新定位的 SnakeYAML 2.x),解决了NoSuchMethodError: org.yaml.snakeyaml.representer.Representer.<init>()错误。 - 修复了错误的
config.yml生成问题 (#8) — 默认config.yml现在直接从 ImageFrame 自身的 FabricModContainer中提取,而不是扫描全局类路径(从而避免与 ConsoleSpamFix Reborn 或 Floodgate 等模组发生冲突),并采用了更严格的配置验证和自动修复功能。 - 上游 Spigot 兼容性:
- 修复了 (
fixed: 1b) 物品展示框在选中、放置、交互、破坏以及合成地图时的行为。 - 实现了
Settings.MapItemFormat自定义命名以用于地图物品,并将Settings.MaxSize连接至下载大小限制。 - 添加了
Hooks.Geyser.DisableSmoothAnimationForBedrockPlayers配置选项(支持 Floodgate 和 Geyser API)。 - 改进了 GIF 检测(魔术字节、
Content-Type和ImageIO读取器)以及 HTML 图片提取(og:image/img[src])。
- 修复了 (
- Floyd-Steinberg 抖动算法 & 图像处理管线:
- 在
FabricMapColorPalette中实现了完整的floyd-steinberg抖动算法,并在服务器重启间持久化 GIF 帧delays。 - 移除了地图创建过程中的双重图像缩放,并将缓慢的
Image.SCALE_SMOOTH替换为双线性Graphics2D缩放。
- 在
- 性能 & 客户端修复:
- 飞溅药水与滞留型隐身药水的帧转换现在基于事件驱动(
ENTITY_UNLOAD/ 追踪云朵并拆分堆栈),而非每刻扫描所有世界实体。 - 限制了可见动态地图缓存更新的频率,并避免了离线线程对
MapItemSavedData进行脏写入。 - 修复了客户端断开连接后的清理工作(
ClientPlayConnectionEvents.DISCONNECT)、多部分高清动态 GIF 帧以及合成FILLED_MAP的工具提示预览。
- 飞溅药水与滞留型隐身药水的帧转换现在基于事件驱动(
/imageframe refresh已修复 — 原位重新下载并渲染现有地图(名称、尺寸和地图 ID 不变)。支持可选的新 URL;若失败则恢复之前的 URL。/imageframe overlay已实现 — 将图像合成到现有的原版地图上(手持的地图或选定的框架),在图像透明处保留地图背景。复用现有的地图 ID,且不消耗空白的地图。- 地板/天花板上的组合地图 — 组合地图的放置现在支持地板和天花板,且点击的框架可以是网格中的任意单元格。
- Spigot 兼容的命令行为:
combinedByDefault在create/clone/get中生效;combined优先级高于selection。get ... selection会消耗空白的地图。- 仅填充空白的物品展示框;被占用的框架会将地图物品返还给玩家并发出警告。
delete会将你物品栏中已被删除地图对应的物品转换回空白地图。create/overlay/clone/refresh现在能正确报告失败情况。
- 创建过程的健壮性增强 — 宽度和高度必须至少为 1;如果创建失败,消耗的空白地图将被退还。
playback ... jumpto现在使用真实的逐帧延迟。- 语言文件 — 动态
/imageframe language建议、本地化的选择消息以及新的en_us键值已合并到现有安装中。 - 修复了 26.2 版本中悬停在地图/画作上时客户端崩溃的问题(
RenderPipelines在 26.3 中移动了包路径)。同一 jar 文件现可在 26.1.2、26.2 和 26.3 上使用。 - 修复了
/imageframe select— 之前会同时选中两个角(始终为 1x1)。 - 地板/天花板的区域选择 — 现在报告正确的尺寸(2x2 不再显示为 4x1)。
- 选择模式 — 可通过单个命令重新激活(陈旧的角坐标不再吞没点击事件)。
- 修复了地图创建静默无响应的问题 — 使用了专用的异步线程池(GIF 动画循环可能导致下载饥饿),在服务端线程处理世界/玩家变更,报告失败情况,并清理失败的创建结果(不再产生空白的原版地图)。
- 权限系统 — 如果权限提供者抛出异常,将回退到原版 OP 等级,而不会导致命令或加入游戏中断。
- 组合地图 — 放置失败时不再消耗地图。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧