ReinforceMC 是由 topandrey14 / topandrey15 于 2025 年 5 月发起的一个原创项目。 “ReinforceMC” 这一名称仅与该项目关联。 严禁在任何商业或具有误导性的项目中未经授权使用该名称。
ReinforceMC ?
一款实现了强化学习功能的 Minecraft 模组,允许神经网络通过可配置的奖励系统和输入处理来学习和游玩 Minecraft。
功能 ✨
? DeepSeek + Baritone 集成已发布!
- 在你的 Telegram 机器人中向 DeepSeek 发送消息,它将使用 Baritone 在 Minecraft 中执行操作!
? 自定义强化学习神经网络训练
- 开始、停止、暂停和恢复训练会话
- 实时性能监控与奖励追踪
- 紧急停止功能,可立即中止训练
- 模型保存与加载功能
? 可配置奖励系统
- 为各种游戏内行为设置自定义奖励:
- ⚔️ 战斗:击杀玩家/生物、受到伤害、治疗
- ?️ 建造:破坏/放置方块、合成物品
- ? 探索:移动、疾跑、跳跃、潜行
- ? 物品:拾取、丢弃、使用、附魔物品
- ? 角色:获得经验值、等级变化、进食
? 输入配置
- ? 截图输入:可配置分辨率以进行视觉学习
- ? 其他玩家坐标:位置与移动数据
- ? 你的角色统计信息:生命值、饥饿值、经验值、物品栏信息
- ? 附近玩家追踪:检测并追踪其他玩家
? 奖励模板系统
- 保存和加载奖励配置
- 将模板导出为 JSON 格式
- 创建自定义训练场景
- 在不同会话间共享配置
?️ 用户界面
- 所有配置选项的综合图形用户界面(GUI)
- 实时训练状态和统计数据
- 带有详细指标的绩效监控器
- 可用按键编辑器用于输入自定义
安装 ?
? 要求
- ? Minecraft 1.16.5
- ⚡ Minecraft Forge 36.2.42 或兼容版本
- ☕ Java 8 或更高版本
- ?️ GPU 支持:支持 CUDA 12.1 的 NVIDIA GPU(可选,若不支持则回退至 CPU,但速度可能较慢)
- ? 内存:分配给 Minecraft 的 RAM 至少为 4GB
? 设置
- 模组将在首次运行时自动下载所需的神经网络库,Minecraft 首次加载模组可能需要长达 5 分钟的时间。此过程不会再次发生。
用法 ?
? 入门指南
- 使用配置的快捷键打开 ReinforceMC GUI(默认:查看键位绑定菜单)
- 配置你的输入设置(截图分辨率、启用的输入项)
- 设置所需行为的奖励参数
- 配置 AI 可用的按键
- 开始训练并监控进度
⌨️ 按键控制
- ?️ 打开 GUI:可配置的快捷键
- ? 切换训练:快速启动/停止训练
- ? 紧急停止:F1(立即暂停/恢复)
⚙️ 配置
? 输入类型
- ?? 截图 + 坐标:完整的视觉和位置数据
- ? 仅截图:无位置数据的视觉学习
- ? 仅坐标:无视觉输入的基于位置的学习
? 奖励配置
为特定行为配置正向或负向奖励。较高的奖励会鼓励该行为,而负向奖励则会抑制它。
⚡ 性能考量
- 更高的截图分辨率会增加显存使用和 processing 时间
- GPU 加速显著提高训练速度
- 训练期间监控系统资源
技术细节 ?
? 依赖项
- ? DJL (Deep Java Library):神经网络框架
- ? PyTorch:后端神经网络引擎
- ? CUDA 支持:兼容硬件的 GPU 加速
? 数据存储
- 模型保存在
.minecraft/mods/reinforcemc/ - 模板存储在
.minecraft/mods/reinforcemc/templates/ - 配置文件使用 JSON 格式
? 性能
- ? CPU 模式:兼容所有系统,训练速度较慢
- ?️ GPU 模式:需要支持 CUDA 的 GPU,训练速度更快
- ? 内存:根据输入配置自动管理内存分配
截图 ?
该模组包含一个综合性的 GUI 系统,具有多个配置屏幕:
- ? 主配置菜单
- ? 奖励系统设置
- ? 输入配置
- ? 训练控制面板
- ? 性能监控
- ? 模板管理
兼容性 ?
- ? Minecraft 版本:1.16.5
- ⚡ Forge 版本:36.2.42+
- ? 操作系统:Windows(主要),其他平台可能在仅 CPU 模式下运行
- ? 内存:建议最低 4GB RAM
许可证 ?
本项目采用 MIT 许可证授权。
注意:此模组需要计算资源,旨在供至少熟悉基本机器学习概念的用户使用。训练时间会根据硬件配置和学习任务的复杂性而有很大差异。
ReinforceMC is an original project started by topandrey14 / topandrey15 in May 2025. The name "ReinforceMC" is associated with this project only. Any unauthorized use of the name in commercial or misleading projects is strictly prohibited.
ReinforceMC ?
A Minecraft mod that implements reinforcement learning capabilities, allowing neural networks to learn and play Minecraft through configurable reward systems and input processing.
Features ✨
? DeepSeek + Baritone integration released!
- Message DeepSeek in your own Telegram bot, and it will perform actions in Minecraft using Baritone!
? Custom Reinforcement learning Neural Network Training
- Start, stop, pause, and resume training sessions
- Real-time performance monitoring with reward tracking
- Emergency stop functionality for immediate training halt
- Model saving and loading capabilities
? Configurable Reward System
- Set custom rewards for various in-game actions:
- ⚔️ Combat: Kill players/mobs, take damage, heal
- ?️ Building: Break/place blocks, craft items
- ? Exploration: Movement, sprinting, jumping, sneaking
- ? Items: Pickup, drop, use, enchant items
- ? Character: Gain XP, level changes, eat food
? Input Configuration
- ? Screenshot Input: Configurable resolution for visual learning
- ? Other Player Coordinates: Position and movement data
- ? Your Character Statistics: Health, hunger, XP, inventory information
- ? Nearby Player Tracking: Detect and track other players
? Reward Template System
- Save and load reward configurations
- Export templates to JSON format
- Create custom training scenarios
- Share configurations between sessions
?️ User Interface
- Comprehensive GUI for all configuration options
- Real-time training status and statistics
- Performance monitor with detailed metrics
- Available keys editor for input customization
Installation ?
? Requirements
- ? Minecraft 1.16.5
- ⚡ Minecraft Forge 36.2.42 or compatible version
- ☕ Java 8 or higher
- ?️ GPU Support: NVIDIA GPU with CUDA 12.1 support (optional, falls back to CPU, but may be slower)
- ? Memory: At least 4GB RAM allocated to Minecraft
? Setup
- The mod will automatically download required neural network libraries on first run, it may take up to 5 minutes for Minecraft to firstly load the mod. It will never happen again.
Usage ?
? Getting Started
- Open the ReinforceMC GUI using the configured keybind (default: check key bindings menu)
- Configure your input settings (screenshot resolution, enabled inputs)
- Set up reward parameters for desired behaviors
- Configure available keys the AI can use
- Start training and monitor progress
⌨️ Key Controls
- ?️ Open GUI: Configurable keybind
- ? Toggle Training: Quick start/stop training
- ? Emergency Stop: F1 (immediate pause/resume)
⚙️ Configuration
? Input Types
- ?? Screenshot + Coordinates: Full visual and positional data
- ? Screenshot Only: Visual learning without position data
- ? Coordinates Only: Position-based learning without visual input
? Reward Configuration
Configure positive or negative rewards for specific actions. Higher rewards encourage the behavior, while negative rewards discourage it.
⚡ Performance Considerations
- Higher screenshot resolutions increase VRAM usage and processing time
- GPU acceleration significantly improves training speed
- Monitor system resources during training
Technical Details ?
? Dependencies
- ? DJL (Deep Java Library): Neural network framework
- ? PyTorch: Backend neural network engine
- ? CUDA Support: GPU acceleration for compatible hardware
? Data Storage
- Models are saved in
.minecraft/mods/reinforcemc/ - Templates are stored in
.minecraft/mods/reinforcemc/templates/ - Configuration files use JSON format
? Performance
- ? CPU Mode: Compatible with all systems, slower training
- ?️ GPU Mode: Requires CUDA-compatible GPU, faster training
- ? Memory: Automatically manages memory allocation based on input configuration
Screenshots ?
The mod includes a comprehensive GUI system with multiple configuration screens:
- ? Main configuration menu
- ? Reward system setup
- ? Input configuration
- ? Training control panel
- ? Performance monitoring
- ? Template management
Compatibility ?
- ? Minecraft Version: 1.16.5
- ⚡ Forge Version: 36.2.42+
- ? Operating System: Windows (primary), other platforms may work with CPU-only mode
- ? Memory: Minimum 4GB RAM recommended
License ?
This project is licensed under the MIT License.
Note: This mod requires computational resources and is intended for users familiar with at least basic machine learning concepts. Training times can vary greatly depending on hardware configuration and complexity of the learning task.
下载 ReinforceMC
下载 ReinforceMC
下载 ReinforceMC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ReinforceMC
下载 ReinforceMC
下载 ReinforceMC
下载 ReinforceMC
下载 ReinforceMC
下载 ReinforceMC
下载 ReinforceMC
?️ ReinforceMC 2.0 Beta – 更新日志
2.0 版本发布标志着 ReinforceMC 向更宏大的架构转型,旨在增强自主学习能力并简化用户交互。
✨ 主要变更:
-
⚙️ 神经网络决策系统重构:
- ? 得益于算法改进,神经网络在动作选择上的混淆率降低了 50%。
-
? **Agentic Mode(智能体模式)**完全取代了旧的 DeepSeek 系统:
- ? 上下文包含之前所有动作的完整链条。
- ? 系统提示词(System Prompt)现在通过
systemprompt文件夹中的外部.txt文件进行设置。 - ?️ 界面新增了用于打开文件夹和将提示词重置为初始状态的按钮。
-
?️ 更新的 GUI:
-
? 全新的配置与模板管理界面。
-
⬆️⬇️ 支持导入和导出训练参数、奖励机制及可用按键。
-
? 支持创建带有选择性设置的
.rmc配置文件。 -
? 支持为以下部分单独创建 JSON 配置文件:
- 训练参数,
- 奖励机制,
- 按键编辑器,
- Hub 处的停止逻辑。
-
-
⛔ 新增“Hub 处停止”功能:
- ? 将快捷栏与给定模式进行比较,并在匹配时自动暂停强化学习(RL)。
- ? 配置保存在全局文件中以及单独的
hub_stop.json中。
-
? 新增自定义动作支持:
- ? 可通过 GUI 激活 TargetPearl、AutoMance 等动作。
? 底层改进:
- ?️ 提升了强化学习的稳定性。
- ? 修复了界面上的小错误。
? 后续计划:
- ? 基于模拟的强化学习(Simulation-Based RL)支持(世界幻影模型,可将神经网络训练速度提升 10–100 倍)—— 已推迟至 ReinforceMC 2.1
- ? Python Input Plugin 支持 —— 同样预计在 2.1 版本中推出
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧