MineLights

MineLights 在华硕笔记本电脑上运行。视频由 Nukepatrol99 提供。
MineLights 是一款适用于 Minecraft Fabric、Quilt、Forge、NeoForge 和 Horizon 的模组,通过为外设提供动态 RGB 灯光效果来让你的世界栩栩如生。它支持 Fabric 1.14.3 及以上版本、Quilt 1.14.4 及以上版本、Forge 1.7.2 及以上发行版、NeoForge 1.20.2 及以上发行版以及 Horizon(最新夜间构建版,适用于 26.3)。
当前支持:Minecraft 1.14.3 - 26.3 (Fabric)、1.14.4 - 26.3 (Quilt)、1.7.2 - 26.3 (Forge)、1.20.2 - 26.3 (NeoForge) 以及 26.3 - 最新夜间构建版 (Horizon)
功能特性
- 广泛的 Multi-SDK 支持:同时集成多种 RGB SDK,包括 OpenRGB、Corsair iCUE、Logitech G HUB、Razer Chroma、MSI Mystic Light、ASUS Aura、SteelSeries GameSense 和 Wooting。
- 动态环境效果:你的灯光会根据游戏内的周围环境实时变化。
- 生物群系颜色:键盘背景色会平滑过渡以匹配你所在的生物群系。
- 天气效果:在游戏雷暴期间体验降雨和戏剧性的闪电闪烁。
- 状态效果:当你处于着火、中毒或凋零状态时,灯光会产生反应。
- 方块效果:站在岩浆、火焰或传送门中会触发独特的灯光主题。
- 游戏内状态栏:在你选择的键盘按键上显示生命值、吸收值、饥饿值、饱和度、空气值和经验值。在 Minecraft 1.21.6 及更高版本中,还可以使用定位栏追踪玩家和 waypoints(路标)。
- 指南针:如果你的背包里有普通指南针或重生指南针,小键盘上将会出现一个指南针(仅限扩展键盘)。或者,你也可以通过设置中的切换选项始终显示它。
- 高度可配置:通过设置界面和
/minelights 命令更改效果键、颜色、集成设置以及单个设备。
- 多语言支持:已添加英语、Anglish、德语和简体中文的支持(以及一些玩笑语言)
支持的 RGB 软件
- OpenRGB 完全的设备支持(DIRECT 模式!)。需要安装 OpenRGB——支持 Windows、Linux 和 MacOS。
- Corsair iCUE:通过 iCUE SDK 完全支持键盘、鼠标、耳机等设备(需要 Corsair iCUE——仅 Windows)。
- Logitech G HUB / Lightsync:控制 Logitech G 键盘、鼠标、耳机以及其他支持 Lightsync 的设备(需要 Logitech G HUB——仅 Windows)。
- Razer Chroma:广泛支持所有 Razer Chroma 兼容的外设,如键盘、鼠标和鼠标垫(需要 Razer Synapse——仅 Windows)。
- MSI Mystic Light:通过 Mystic Light SDK 控制主板、显卡和其他设备(需要 MSI Center——仅 Windows)。
- ASUS Aura Sync:通过 ASUS Aura SDK 控制主板、显卡和其他设备(需要 Armoury Crate——仅 Windows)。
- SteelSeries GameSense:与 SteelSeries 外设(如键盘、鼠标和耳机)集成(需要 SteelSeries GG——仅 Windows)。
- Wooting:对 Wooting 模拟键盘进行直接、低延迟的控制(需要运行 Wootility 软件——仅 Windows)。
- Novation:支持 Novation MIDI 控制器(如 Launchpad),实现独特的网格化效果(Windows)。
- Raspberry Pi Pico:直接控制由 Raspberry Pi Pico 供电的自定义 DIY 照明项目(Windows)。
- Yeelights 直接控制你的 Yeelights 智能家居灯泡(通用)。
本项目使用了 RGB.Net Nuget 包。
?️ 安装
前置条件
- Minecraft Fabric 或 Quilt:安装对应的 Fabric 或 Quilt 加载器。
- Minecraft NeoForge:为受支持的 Minecraft 版本安装 NeoForge。
- Minecraft Forge:为其中一个受支持的 Minecraft 版本安装 Forge。
- Mod Menu:用于访问游戏内配置界面。
- Cloth Config API:用于访问游戏内配置界面。
- 无需 Quilt API 捆绑包:MineLights 可在没有 QSL、QFAPI 或 Fabric API 的情况下在 Quilt 上运行。
- (可选) OpenRGB:推荐使用最新版本的 OpenRGB 以使用 OpenRGB 设备。
- (可选) 其他所有 RGB 软件:如果你拥有其他硬件,请确保其官方软件已安装并正在运行。
安装步骤
- 在 Fabric、Quilt、Forge 或 NeoForge 上,将模组放入你的 mods 文件夹,然后启动 Minecraft。在 Windows 上,MineLights 会在需要时下载 MineLights Server 并默认检查更新。若要手动安装,请在 MineLights 服务器设置中启用 Manage MineLights Server manually(手动管理 MineLights 服务器)。这将禁用自动下载和替换;可配置的聊天通知会说明如何安装或更新服务器。将
MineLights.exe 放入 Fabric、Forge 和 NeoForge 的游戏 mods/MineLights 文件夹中,或放入 Quilt 的游戏 MineLights 文件夹中。模组可以自动启动已安装的服务器。
安装 MineLights 2.2 版本:只需将模组放入你的 mods 文件夹,然后启动 Minecraft。按照屏幕上的指示操作。
安装 MineLights 2.1 或更低版本:请参阅发布日志中的指南。
OpenRGB 设置(可选)
- 如果你想使用 OpenRGB 设备,请安装最新版本的 OpenRGB(推荐)。
- 在安装或更新 OpenRGB 后,在使用 MineLights 之前重启电脑。
- 启动 OpenRGB,打开 SDK Server(SDK 服务器)选项卡,然后点击 Start Server(启动服务器)。在 Minecraft 运行时保持 OpenRGB 开启。MineLights 连接到本地服务器
127.0.0.1:6742(默认的 SDK 服务器地址和端口)。
使用方法
- 启动 Minecraft 或 Horizon: 使用你的 Fabric、Quilt、Forge 或 NeoForge 配置文件启动游戏,或者在启用 MineLights 的情况下启动 Horizon。
- 配置:
- 在主菜单中,进入 Mods > MineLights > Config(齿轮图标)。
- 启用你想要使用的集成(OpenRGB、Corsair iCUE 等)。
- 保存配置。
- 刷新设备以显示新添加的设备。
- 如果需要,你可以重新进入配置界面以禁用特定设备。
- 在可用的设置屏幕或使用命令配置效果按键和颜色。例如,
/minelights set health-bar-keys F1,F2,F3,F4 选择健康条按键,而 /minelights set health-color #FF0000 设置其满血时的颜色。使用 /minelights list 查看可用设置。
- 如果 OpenRGB 报告的 LED 名称不正确,请使用覆盖设置,例如
/minelights set led-overrides Keyboard|1=F1。多个覆盖项之间用分号分隔;使用 none 清除它们。设备名称匹配报告名称的一部分,LED 索引会出现在游戏日志中。
- 默认情况下,退出世界后会恢复 OpenRGB 灯光。你可以使用
/minelights set outside-world-profile <profile name> 选择一个配置文件;当该 OpenRGB 服务器中包含被禁用的设备时,不会加载此配置文件。
- ⚠️:MSI Mystic Light 集成需要你以管理员身份重启 MineLights 服务器才能生效!
- 享受! 现在你的灯光将与游戏同步。
路线图
- Windows 动态灯光: 计划在未来集成 Windows Dynamic Lighting。
- 提升设备兼容性: 持续努力在所有 SDK 中支持更多设备。
- 社区测试: 理想情况下需要有测试人员,到时候见!
- 解决问题: 我致力于在 问题页面 解决发现的问题,或通过我自己发现并记录的 日志 中的问题进行修复。
贡献
欢迎贡献!请 Fork 仓库并提交拉取请求。
联系方式
如有任何问题、建议或错误报告,请在 GitHub 仓库上 提交 issue。
MineLights

MineLights running on an Asus laptop. Video courtesy of Nukepatrol99.
MineLights is a Minecraft Fabric, Quilt, Forge, NeoForge and Horizon mod that brings your world to life with dynamic RGB lighting effects for your peripherals. It targets Minecraft versions from 1.14.3 onward on Fabric, 1.14.4 onward on Quilt, Forge releases from 1.7.2 onward, NeoForge releases from 1.20.2 onward and Horizon releases (latest nightly, for 26.3).
Currently supported: Minecraft 1.14.3 - 26.3 (Fabric), 1.14.4 - 26.3 (Quilt), 1.7.2 - 26.3 (Forge), 1.20.2 - 26.3 (NeoForge) and 26.3 - Latest nightly (Horizon)
Features
- Extensive Multi-SDK Support: Integrates with a wide array of RGB SDKs simultaneously, including OpenRGB, Corsair iCUE, Logitech G HUB, Razer Chroma, MSI Mystic Light, ASUS Aura, SteelSeries GameSense, and Wooting.
- Dynamic Environmental Effects: Your lighting changes in real-time based on your in-game surroundings.
- Biome Colors: Your keyboard's background color smoothly transitions to match the biome you're in.
- Weather Effects: Experience rain and dramatic lightning flashes during in-game thunderstorms.
- Status Effects: Your lighting will react when you are on fire, poisoned, or withering.
- Block Effects: Standing in lava, fire, or portals will trigger unique lighting themes.
- In-Game Status Bars: Show health, absorption, hunger, saturation, air, and experience on your chosen keyboard keys. On Minecraft 1.21.6 and later, a locator bar can also track players and waypoints.
- Compass: A compass on your numpad (Extended keyboards only) will appear, if you have either a compass or recovery compass in your inventory! Alternatively it can always be displayed via a toggle in settings.
- Highly Configurable: Change effect keys and colors, integrations, and individual devices through the settings screen and
/minelights commands.
- Multiple Languages: Support for English, Anglish, German and Chinese (Simplified) has been added (Along with some joke languages)
Supported RGB Software
- OpenRGB Full device support (DIRECT mode!). Requires OpenRGB - Windows, Linux and MacOS.
- Corsair iCUE: Full device support for keyboards, mice, headsets, and more via the iCUE SDK (requires Corsair iCUE - Windows).
- Logitech G HUB / Lightsync: Controls Logitech G keyboards, mice, headsets, and other Lightsync-enabled gear (requires Logitech G HUB - Windows).
- Razer Chroma: Extensive support for all Razer Chroma-enabled peripherals like keyboards, mice, and mousepads (requires Razer Synapse - Windows).
- MSI Mystic Light: Control for motherboards, GPUs, and other devices via the Mystic Light SDK (requires MSI Center - Windows).
- ASUS Aura Sync: Control for motherboards, GPUs, and other devices via the ASUS Aura SDK (requires Armoury Crate - Windows).
- SteelSeries GameSense: Integration with SteelSeries peripherals like keyboards, mice, and headsets (requires SteelSeries GG - Windows).
- Wooting: Direct, low-latency control for Wooting analog keyboards (requires Wootility software to be running - Windows).
- Novation: Support for Novation MIDI controllers like the Launchpad, enabling unique grid-based effects (Windows).
- Raspberry Pi Pico: Directly control custom DIY lighting projects powered by a Raspberry Pi Pico (Windows).
- Yeelights Directly control your Yeelights smarthome bulbs (Universal).
This project uses the RGB.Net Nuget package.
🛠️ Installation
Prerequisites
- Minecraft Fabric or Quilt: Install the matching Fabric or Quilt Loader.
- Minecraft NeoForge: Install NeoForge for the supported Minecraft version.
- Minecraft Forge: Install Forge for one of the supported Minecraft versions.
- Mod Menu: Required to access the in-game configuration screen.
- Cloth Config API: Required to access the in-game configuration screen.
- No Quilt API bundle required: MineLights runs on Quilt without QSL, QFAPI, or Fabric API.
- (Optional) OpenRGB: The latest OpenRGB version is recommended for OpenRGB devices.
- (Optional) All other RGB software: If you have any other hardware, ensure their official software is installed and running.
Installation
- On Fabric, Quilt, Forge or NeoForge, place the mod in your mods folder, then start Minecraft. On Windows, MineLights downloads MineLights Server when needed and checks for updates by default. To install it yourself, enable Manage MineLights Server manually in MineLights' server settings. This disables automatic downloads and replacements; configurable chat notices explain how to install or update the server. Place
MineLights.exe in the game's mods/MineLights folder for Fabric, Forge and NeoForge, or the game's MineLights folder for Quilt. The mod can start an installed server automatically.
Installing MineLights version 2.2: Simply place the mod in your mods folder, then start Minecraft. Follow the on-screen instructions.
Installing MineLights version 2.1 or below: Follow the guide in the release changelog.
OpenRGB setup (optional)
- Install the latest OpenRGB version (recommended) if you want to use OpenRGB devices.
- After installing or updating OpenRGB, restart your computer before using MineLights.
- Start OpenRGB, open the SDK Server tab, and click Start Server. Keep OpenRGB running while Minecraft is open. MineLights connects to the local server at
127.0.0.1:6742 (the default SDK server address and port).
Usage
- Launch Minecraft or Horizon: Start the game with your Fabric, Quilt, Forge, or NeoForge profile, or launch Horizon with MineLights enabled.
- Configure:
- In the main menu, go to Mods > MineLights > Config (the gear icon).
- Enable the integrations you want to use (OpenRGB, Corsair iCUE, etc.).
- Save the config.
- Refresh devices to show newly added devices.
- You can re-enter the config to disable specific devices if you wish.
- Configure effect keys and colors in the available settings screen or with commands. For example,
/minelights set health-bar-keys F1,F2,F3,F4 chooses the health keys and /minelights set health-color #FF0000 sets their full-health color. Use /minelights list to see the available settings.
- If OpenRGB reports a wrong LED name, use an override such as
/minelights set led-overrides Keyboard|1=F1. Separate multiple overrides with semicolons; use none to clear them. The device name matches part of the reported name and LED indexes appear in the game log.
- OpenRGB lighting is restored outside worlds by default. You can choose a profile with
/minelights set outside-world-profile <profile name>; the profile is not loaded when that OpenRGB server contains disabled devices.
- ⚠️: MSI Mystic Light integration requires you to restart the MineLights server as administrator to work!
- Enjoy! Your lighting will now sync with your game.
Roadmap
- Windows Dynamic Lighting: Integration with Windows Dynamic Lighting is planned for the future.
- Improve Device Compatibility: Continuously working to improve support for more devices across all SDKs.
- Community Testing: Ideally have testers, well test!
- Resolve Issues: I aim to resolve problems either within the issues page or issues I personally find and log.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
Contact
For any questions, suggestions, or bug reports, please open an issue on the GitHub repository.
评论 0
登录后参与评分
还没有评论,来抢沙发吧