MiraHUD
你的 Minecraft 界面,由你主宰。 MiraHUD 是一款客户端 Fabric 模组,可将图片、视频和一键命令按钮添加到你的 HUD 中。挖矿时看电影。将参考图钉在屏幕角落。无需输入命令即可打开末影箱、拍卖行或商店。无需任何服务器端设置。只需将其放入你的 mods 文件夹即可。一切就绪。
MiraHUD 能做什么
图片和视频叠加层
你可以将任何东西放置在游戏屏幕上方。图片、循环视频、参考表或地图。随你放置在任何位置,大小由你决定。
-
按需堆叠多个叠加层。无论是图片还是视频,任意组合均可。每个叠加层都拥有独立的位置、大小、透明度和锚点。无硬性限制。
-
支持几乎所有图像格式。PNG、JPG、WEBP、TGA、BMP、GIF。你在网上下载的随机素材都能处理。
-
像素级定位。设置精确的 X 和 Y 坐标,自由调整大小并锁定宽高比,防止画面拉伸。透明度可从完全不透明降至几乎不可见的 1%,非常适合用作微妙的参考叠加层。
-
五个锚点。将叠加层吸附到任意角落或中心。无论运行何种分辨率,它们都会保持原位。
-
拖拽模式。如果你不想折腾数字,只需拖拽叠加层直到位置合适为止。右键单击可将其重新吸附到锚点。
-
实时预览。你在设置菜单中的每次更改都会立即显示在屏幕上。无需关闭再重新打开来查看效果。
Minecraft 内置的真实视频播放器
这并非某种半成品实验。MiraHUD 运行着 FFmpeg 视频管道。你的视频会播放音频轨道并保持音画同步。
-
几乎支持所有格式。MP4、MKV、WEBM、AVI、MOV、FLV、WMV。只要是视频格式,大概率都能正常工作。
-
真正保持同步的音频。音频轨道作为主时钟。视频帧会根据其呈现时间戳进行延迟,以确保声音和画面永不漂移。这是帧级精确,而非“差不多就行”。
-
完整的播放控制。按 P 恢复播放。使用方向键前进或后退 10 秒。按 R 从头开始。开启或关闭循环模式。视频叠加层在配置屏幕中还配有类似 VLC 的进度条:拖动可跳转到任意时刻,旁边会实时显示已播放/总时长。
-
无缝循环模式。无闪烁、无重新加载、无 GPU 峰值。它只是干净地重新开始。
-
每个叠加层的音量控制。每个叠加层都有独立的音量滑块,同时也尊重 Minecraft 的主音量设置。你可以在一个角落放一个视频,在另一个角落放一个静音视频。
-
FFmpeg 自动管理。如果你未安装 FFmpeg,MiraHUD 会在后台悄悄下载一个构建版本,而你则可以继续玩游戏。你自己的 FFmpeg 安装(如果有的话)永远不会被触碰、移动或修改。在 Windows、Linux 和 macOS 上,这一切都是全自动的。
-
自我修复播放。如果视频管道崩溃或文件加载失败,MiraHUD 会察觉、退让并自行重试。它不会仅仅冻结在一帧上就放弃。
一键式物品栏小部件
如果你厌倦了反复输入 /ec,MiraHUD 会将这些命令变成物品栏界面上的可点击按钮。
-
六种内置小部件:末影箱、拍卖行、出售、垃圾桶、商店和市场。单击一次,命令即执行。完成。
-
自动布局。小部件整齐地排列在你的物品栏旁边。如果某一行太多,它们会自动换行到第二行。你无需手动排列任何东西。
-
切换各个小部件。不使用垃圾桶小部件?将其关闭。想要全部六个?全部开启。按 I 打开小部件管理器,翻转你想要的小部件。每个小部件都显示工具提示,让你知道它运行的是什么命令。
-
整个物品栏 HUD 可以关闭。如果你想暂时享受纯净的原版物品栏体验,可以在小部件管理器中切换主开关。需要按钮时再打开。你始终掌控着显示内容。
-
自定义小部件支持。如果你是开发者,可以使用自定义图标、物品纹理和点击行为构建你自己的小部件。
开箱即用的配置
没有任何东西隐藏在配置文件中。一切简单明了。
-
自动保存所有内容。叠加层位置、大小、音量以及启用了哪些小部件。所有设置都写入 config/mirahud/ 目录内整洁的 JSON 文件中。下次启动时,一切都会恢复到离开的状态。
-
叠加层预设。已经按照喜好设置了叠加层?将其保存为命名预设。稍后通过单击即可重新应用。在游戏中或不同情境间循环使用保存好的预设。
-
真正的文件选择器。单击“浏览”。你会得到操作系统真正的文件对话框。它在后台线程运行,因此你在查找文件时游戏永远不会卡死。
-
路径解析。路径输错了?粘贴了奇怪的内容?MiraHUD 会自动根据你的文件名搜索视频、下载、桌面和文档文件夹。为你修正路径。它在寻找文件方面出奇地高效。
叠加层树
按下 O,配置屏幕中间会长出一棵像素风格的树。这棵树 就是 你的叠加层列表。
-
树桩是添加按钮。 按下树干底部的树桩以长出新分支(叠加层)。当树为空时,它会询问你想要图片还是视频;否则它直接生成一个。
-
树枝是叠加层。 每个叠加层都是树干上的一个分支。启用的叠加层会长出茂密的树叶冠;禁用的叠加层则保持光秃。视频叠加层的叶子会在风中轻轻摇曳,而图片叠加层的叶子静止不动,让你一眼就能区分它们。
-
单击树枝以编辑它。 其设置会在左侧打开:路径、位置、大小、透明度、音量、播放/循环、进度条和预设。< Back 返回树视图,- Remove 砍掉该分支。
-
一目了然。 你正在编辑的叠加层会在树干上别上一个紫色的像素心形。悬停在一个分支上会将其高亮显示为绿色,并显示完整文件路径。
快速控制
所有按键绑定均可在原版 Minecraft 的控制菜单中进行更改。
键 | 功能
|-----|-------------|
| O | 打开覆盖层配置界面(树状图)。按下“树桩”可添加覆盖层,点击“树枝”以编辑它 |
| K | 一键切换所有覆盖层的开启或关闭状态(截图或过场动画时非常实用) |
| I | 打开小部件管理器。切换小部件或整个 HUD 的显示 |
| P | 暂停或恢复当前正在播放的视频 |
| 右箭头 | 快进 10 秒 |
| 左箭头 | 快退 10 秒 |
| R | 从头重新开始播放视频 |
所需环境
MiraHUD 完全为客户端模组。只需在你的电脑上安装即可。它适用于任何服务器:原版、整合包、小游戏等皆可。服务端无需安装任何内容。在 Windows、Linux 和 macOS 上,MiraHUD 会在启动时检查 FFmpeg;如果未找到,则会在你游玩的同时在后台自动下载一个便携版构建。在使用前它会验证下载的完整性,如果发现二进制文件损坏,则会将其删除并重新下载全新的文件。你本地已有的 FFmpeg 安装(如果有)绝不会受到干扰。
安装方法
-
为 Minecraft 26.1 或 26.2 安装 Fabric Loader。将 Fabric API 的 jar 文件放入你的 mods 文件夹中。
-
将 MiraHUD 的 jar 文件放入你的 mods 文件夹中。
-
启动游戏。按 O 打开覆盖层树,然后按下其底部的“树桩”来生成你的第一个覆盖层。
从源代码构建
./gradlew build
编译后的 jar 文件位于 build/libs/ 目录下。
许可证
MiraHUD 采用 MIT License 发布。
MiraHUD
Your Minecraft screen, your rules. MiraHUD is a client-side Fabric mod that puts images, videos and one-click command buttons onto your HUD. Watch a movie while you mine. Pin a reference image to the corner of your screen. Open your ender chest the auction house or the shop without typing a command. No server-side setup needed. Just drop it in your mods folder. You're good to go.
What MiraHUD Can Do
Image and Video Overlays
You can put anything on top of your game screen. An image, a looping video, a reference sheet, a map. Wherever you want it at whatever size feels right.
-
Stack many overlays as you want. Images, videos whatever combination you need. Each one gets its position, size, opacity and anchor point. No hard limits.
-
much any image format works. PNG, JPG, WEBP, TGA, BMP, GIF. Random stuff you downloaded off the internet. It handles all of them.
-
Pixel- positioning. Set exact X and Y coordinates, resize freely lock the aspect ratio so nothing stretches. Opacity goes from solid down to a barely-visible 1%, which is great for subtle reference overlays.
-
Five anchor points. Snap overlays to any corner or the center. They stay put regardless of what resolution you run at.
-
Drag Mode. If you don't want to mess with numbers just drag the overlay around until it looks right. Right-click snaps it back to an anchor point.
-
preview. Every change you make shows up on screen immediately before you even close the settings menu. No. Reopening to see what you did.
A Real Video Player Inside Minecraft
This is not some baked experiment. MiraHUD runs a FFmpeg video pipeline. Your videos play with their audio track and they stay in sync.
-
Plays pretty much everything. MP4, MKV, WEBM, AVI, MOV, FLV, WMV. If its a video format it probably works.
-
Audio that actually stays in sync. The audio track is the master clock. Video frames are held back to their presentation timestamps so the sound and picture never drift apart. It's frame-accurate, not "close enough."
-
Full playback controls. Resume with P. Skip forward or back 10 seconds with the arrow keys. Restart from the beginning with R. Toggle looping on or off. Video overlays also get a VLC-style seek bar in the config screen: drag to scrub to any moment, with a live elapsed / total time readout next to it.
-
Loop mode is seamless. No flicker, no reloading no GPU spikes. It just restarts cleanly.
-
Per-overlay volume control. Each overlay has its volume slider and it respects your Minecraft master volume too. You can have a video in one corner and a quiet one in another.
-
FFmpeg handles itself. If you don't have FFmpeg installed MiraHUD quietly downloads a build in the background while you keep playing. Your own FFmpeg installation (if you even have one) is never touched, moved or modified. On Windows, Linux and macOS this is fully automatic.
-
Self-healing playback. If a video pipeline crashes or a file fails to load MiraHUD notices, backs off and retries on its own. It doesn't just freeze on a frame and give up.
One-Click Inventory Widgets
If you're tired of typing /ec. Over and over MiraHUD puts those commands into your inventory screen as clickable buttons.
-
Six built-in widgets: Ender Chest, Auction House, Sell, Trash, Shop and Market. Click once the command fires. Done.
-
auto-layout. Widgets line up neatly next to your inventory. If there are many for one row they automatically wrap to a second row. You don't have to arrange anything by hand.
-
Toggle each widget. Don't use the Trash widget? Turn it off. Want all six? Turn them all on. Press I to open the widget manager where you can flip the ones you want. Each widget shows a tooltip so you know what command it runs.
-
The entire inventory HUD can be turned off. If you want a clean vanilla inventory for a while flip the master switch in the widget manager. Turn it on when you need your buttons again. You're always in control of what shows up.
-
Custom widget support. If you're a developer you can build your widgets with custom icons, item textures and click behavior.
Configuration That Just Works
Nothing is hidden in config files. Everything is straightforward.
-
Everything saves automatically. Overlay positions, sizes, volumes which widgets are enabled. All written to clean JSON files inside config/mirahud/. Everything comes back how you left it the next time you launch.
-
Overlay presets. Got an overlay set up how you like it? Save it as a named preset. Reapply it later with one click. Cycle through your saved presets for games or situations.
-
A real file picker. Click Browse. You get your operating systems actual file dialog. It runs on a background thread so the game never freezes while you look for a file.
-
path resolution. Typed a path wrong. Pasted something weird? MiraHUD automatically searches your Videos, Downloads, Desktop and Documents folders by filename. Fixes the path for you. It's surprisingly good at finding things.
The Overlay Tree
Press O and the config screen grows a pixel-art tree in the middle of your screen. The tree is your overlay list.
-
The stump is the add button. Press the stump at the base of the trunk to grow a new branch (overlay). When the tree is empty it asks whether you want an image or a video; otherwise it just grows one.
-
Branches are overlays. Every overlay is a branch on the trunk. An enabled overlay grows a full leaf canopy; a disabled one stays bare. Video overlays' leaves sway gently in the wind, image overlays' leaves stay still, so you can tell them apart at a glance.
-
Click a branch to edit it. Its settings open on the left: path, position, size, opacity, volume, play/loop, seek bar and presets. < Back returns you to the tree and - Remove chops the branch off.
-
At a glance. The overlay you're editing gets a purple pixel heart pinned on the trunk. Hovering a branch highlights it green and shows the full file path.
Quick Controls
Every keybind can be changed in the vanilla Minecraft Controls menu.
Key | What It Does |
|-----|-------------|
| O | Open the Overlay Config screen (the tree). Press the stump to add an overlay, click a branch to edit it |
| K | Toggle all overlays on or off at once (handy for screenshots or cutscenes) |
| I | Open the Inventory Widget manager. Toggle widgets or the whole HUD |
| P | Pause or resume whatever video is currently playing |
| Right Arrow | Skip forward 10 seconds |
| Left Arrow | Skip backward 10 seconds |
| R | Restart the video from the beginning |
What You'll Need
MiraHUD is completely client-side. Install it on your machine. It works on any server. Vanilla, modded, minigames, anything. The server doesn't need anything installed. On Windows, Linux and macOS MiraHUD checks for FFmpeg at startup and, if it's missing, automatically downloads a portable build in the background while you play. It validates the download before using it, and if the binaries ever turn out to be corrupt it deletes them and downloads fresh ones. Your own FFmpeg installation (if you have one) is never touched.
Installation
-
Install Fabric Loader for Minecraft 26.1 or 26.2. Drop the Fabric API jar into your mods folder.
-
Drop the jar into your mods folder.
-
Launch the game. Press O to open the overlay tree, then press the stump at its base to grow your first overlay.
Building from Source
./gradlew build
The compiled jar lands, in build/libs/.
License
MiraHUD is released under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧