F Minecraft Mod
一款用于管理的 Minecraft 模组。
注意
这是一个服务端模组,即使客户端未安装也能正常运行。
所有功能默认处于禁用状态,可通过命令或配置文件进行配置。
功能
通知
追踪对管理员或你的朋友有用的事件。
- 实体数量超过阈值时的警告
- 自动实体密度分析
- 玩家死亡坐标
- Boss、命名实体和击杀怪物的死亡信息
- 检测挂机(AFK)状态
- 投射物命中消息,包含距离和生命值
- Boss 战信息
- 快速传送检测
- 传送通知
- 生物群系变更通知
- 睡觉时间提醒
所有通知消息均可自定义配置。
玩家信息命令
获取并分享详细的玩家信息:
- 坐标和距离
- 生命值、饥饿值、饱和度、经验值
- 物品栏内容(支持悬停查看详情)
- 当前手持物品
- 旅行统计信息
音符盒歌曲播放器
在游戏中播放 Note Block Studio (.nbs) 格式的乐曲。
- 向特定玩家或所有在线玩家播放乐曲
- 控制播放速度和位置
- 在动作栏显示/隐藏进度条
- 暂停、恢复和停止播放
GPT 集成
在游戏中直接与大型语言模型对话,支持 Markdown 语法高亮。
- 支持 OpenAI 兼容 API
- 对话历史管理
- 系统提示词和温度控制
- 多种语言的代码块语法高亮
流系统
使用内置的基于节点的流程图引擎构建自定义自动化逻辑。无需重启服务器即可创建、编辑和执行逻辑流。
- 事件触发器(玩家行为、实体事件、定时任务等)
- 算术、条件和数据操作节点
- 将流程保存为
.flow 文件并加载
- 服务器启动时自动加载流程
自定义规则系统
从游戏事件中创建规则,评估条件并自动执行操作。
- 使用
/f rule 创建、编辑、启用和删除规则
- 事件 -> 条件 -> 动作管道,满足和不满足条件时可分别执行不同动作
- 将规则保存为
.rule 文件并加载
- 参数化规则组件,支持标签补全和公式条件
- 规则触发历史记录、执行日志以及测试/触发命令
- 服务器启动时自动加载规则
可视化编辑器
在客户端编辑流程和规则(需要 Mod Menu,仅限单人游戏)。
- 规则编辑器:包含事件选择器、条件/动作区域、公式框以及生成的参数控件
- 流程编辑器:支持拖拽节点、连接连线以及撤销/重做
- 两个编辑器均支持客户端本地的撤销/重做
使用指南
所有命令均以 /f 开头,除非另有说明,否则需要 OP(操作员)权限。
基本命令
/f - 显示模组版本信息
/f reload - 重新加载配置文件
/f options - 查看或更改模组设置
Say 命令
向所有玩家广播带有富文本格式和动态占位符的消息(无需 OP 权限):
/f say <message>
格式化代码:
使用 Minecraft 颜色代码,前缀为 &:
&0-&f - 颜色
&l - 加粗, &o - 斜体, &n - 下划线, &m - 删除线, &k - 乱码
&r - 重置格式
自定义样式:
${color:RRGGBB} - 应用十六进制颜色(例如 ${color:FF5733})
${link:url} - 创建可点击的 URL 链接
${copy:text} - 创建点击复制文本
${hint:text} - 添加悬停工具提示
${suggest:command} - 点击时建议命令
${markdown} - 将内容解析为 Markdown
玩家占位符:
${player} - 玩家显示名称
${health}, ${hp} - 当前生命值
${maxhealth}, ${maxhp} - 最大生命值
${level} - 经验等级
${hunger} - 饥饿等级
${saturation} - 饱和度等级
${x}, ${y}, ${z} - 玩家坐标
${pitch}, ${yaw} - 玩家旋转角度
${biome} - 当前生物群系
${coord} - 格式化后的坐标
${mainhand}, ${offhand} - 手持物品
示例:
/f say &aHello &b${player}&a! Your HP is ${hp}/${maxhp}
/f say ${color:FF5733}Warning! ${player} is at ${coord}
/f say Check this out: ${link:https://example.com}${hint:Click to open}Click here!
/f say ${suggest:/tp @s yourName}${hint:Click to suggest teleport}Click to teleport to my location
GPT 命令
首先在配置文件中配置 GPT 服务器 URL 和 API 密钥。
/f gpt new <message> - 开始新对话
/f gpt reply <message> - 在当前对话中回复
/f gpt regenerate - 重新生成上一条响应
/f gpt edit <index> <text> - 编辑之前的某条消息
/f gpt history [page] - 查看对话历史
信息命令
获取其他玩家的信息:
/f get coord <player> - 获取玩家坐标
/f get distance <player> - 获取与玩家的距离
/f get health <player> - 获取玩家生命值
/f get status <player> - 获取综合状态
/f get inventory <player> - 查看玩家物品栏
/f get item <player> - 查看手持物品
/f get crowd [number] [radius] - 查找实体最密集的区域
分享你自己的信息(无需 OP 权限):
/f share coord - 分享你的坐标
/f share distance - 分享与他人之间的距离
/f share health - 分享你的生命值
/f share status - 分享综合状态
/f share inventory - 分享你的物品栏
/f share item - 分享手持物品
音符盒歌曲命令
将 .nbs 文件放置在 config/fminecraftmod/ 文件夹中,然后:
/f song play <players> <song> - 播放歌曲
/f song get <players> - 检查播放状态
/f song cancel <players> - 停止播放
/f song seek <players> <time> - 跳转到指定时间(秒)
/f song speed <players> <multiplier> - 设置播放速度(例如 1.5)
Flow Commands
创建和管理自定义自动化流程:
/f flow create <name> <event_type> <first_node_name> - 创建新流程
/f flow list - 列出所有流程
/f flow enable <name> [true|false] - 启用/禁用流程
/f flow rename <old> <new> - 重命名流程
/f flow copy <source> <target> - 复制流程
/f flow delete <name> - 删除流程
编辑流程:
/f flow edit <flow> new <node_type> <node_name> - 添加节点
/f flow edit <flow> remove <node_name> - 移除节点
/f flow edit <flow> rename <old> <new> - 重命名节点
/f flow edit <flow> const <node> <input_index> <value> - 设置常量输入
/f flow edit <flow> reference <node> <input> <source> <output> - 连接节点
/f flow edit <flow> disconnect <node> <input> - 断开输入连接
/f flow edit <flow> next <node> <branch> <target> - 设置下一个节点
/f flow edit <flow> final <node> <branch> - 标记为最终节点
/f flow edit <flow> undo - 撤销上次编辑
/f flow edit <flow> redo - 重做上次撤销
保存和加载流程:
/f flow save <name> - 保存到文件 (config/fminecraftmod/)
/f flow save * - 保存所有流程
/f flow load <filename> - 从文件加载
/f flow load * - 加载所有 .flow 文件
触发和执行:
/f flow history [page] - 查看执行历史
/f flow log <index> - 查看详细执行日志
/f trigger <trigger_name> [args] - 执行触发节点(无需 OP 权限)
Rule Commands
创建和管理自定义规则:
/f rule create <name> <event> - 创建规则
/f rule copy <rule> <name> - 复制规则
/f rule list - 列出所有规则
/f rule enable <name> [true|false] - 启用/禁用或查询规则
/f rule rename <old> <new> - 重命名规则
/f rule delete <name> - 删除规则
编辑规则:
/f rule edit <rule> event <event> - 更改事件类型
/f rule edit <rule> condition add <type> ... - 添加条件
/f rule edit <rule> condition set <formula> - 设置主条件公式
/f rule edit <rule> condition remove <condition> - 移除条件
/f rule edit <rule> condition rename <old> <new> - 重命名条件
/f rule edit <rule> action add <type> ... - 添加动作(满足条件时执行)
/f rule edit <rule> action remove <action> - 移除动作
/f rule edit <rule> action rename <old> <new> - 重命名动作
/f rule edit <rule> punish add <type> ... - 添加惩罚(违反条件时执行)
/f rule edit <rule> punish remove <action> - 移除惩罚
/f rule edit <rule> punish rename <old> <new> - 重命名惩罚
保存、加载和调试:
/f rule save <name> - 将规则保存到 config/fminecraftmod/
/f rule save * - 保存所有规则
/f rule load <filename> - 加载规则文件,使用 * 加载全部
/f rule view <name> - 显示规则定义
/f rule history [page] - 查看规则触发历史
/f rule log <index> - 查看详细触发日志
/f rule test <name> - 评估条件而不执行动作
/f rule trigger <name> - 触发规则并执行其动作
Configuration Examples
使用 /f options 启用功能:
/f options serverTranslation [true|false] - 服务器端翻译
/f options entityDeathMessage [location] - 实体死亡消息
/f options passiveDeathMessage [location] - 被动实体死亡
/f options hostileDeathMessage [location] - 敌对实体死亡
/f options playerDeathCoordLocation [location] - 玩家死亡坐标
/f options gptUrl [url] - GPT API 端点
/f options autoLoadRuleFiles [true|false] - 启动时自动加载 .rule 文件
/f options autoLoadFlowFiles [true|false] - 启动时自动加载 .flow 文件
- 等等。
提示:使用 Tab 键自动补全命令。
F Minecraft Mod
A Minecraft Mod for Management.
Note
This is a server-side mod that works even if clients don't have it installed.
All features are disabled by default and can be configured using commands or the config file.
Features
Notifications
Track events that are useful for admins or your friends.
- Entity count warnings when threshold exceeded
- Automatic entity density analysis
- Player death coordinates
- Boss, named entity, and killer mob deaths
- Detect AFK status
- Projectile hit messages with distance and HP
- Boss fight information
- Fast travel detection
- Teleportation notifications
- Biome change notifications
- Sleep time reminders
All the notification messages are configurable.
Player Information Commands
Get and share detailed player information:
- Coordinates and distance
- Health, hunger, saturation, xp
- Inventory contents (with hover details)
- Current items held
- travel statistics
Note Block Song Player
Play Note Block Studio (.nbs) songs to players in-game.
- Play songs to specific players or all online players
- Control playback speed and position
- Show/hide progress in action bar
- Pause, resume, and stop playback
GPT Integration
Chat with Large Language Models directly in-game with markdown syntax highlighting.
- OpenAI-compatible API support
- Conversation history management
- System prompts and temperature control
- Code block syntax highlighting for multiple languages
Flow System
Build custom automation with an in-game node-based flowchart engine. Create, edit, and execute logic flows without restarting the server.
- Event triggers (player actions, entity events, scheduled tasks, etc.)
- Arithmetic, conditional, and data manipulation nodes
- Save and load flows as
.flow files
- Auto-load flows on server start
Custom Rule System
Create rules from game events, evaluate conditions, and run actions automatically.
- Create, edit, enable, and delete rules with
/f rule
- Event -> condition -> actions pipeline, with separate actions for satisfied and violated conditions
- Save and load rules as
.rule files
- Parameterized rule components with tab completion and formula conditions
- Rule trigger history, execution logs, and test/trigger commands
- Auto-load rules on server start
Visual Editors
Edit flows and rules in the client (requires Mod Menu, singleplayer only).
- Rule editor with an event picker, condition/action sections, a formula box, and generated parameter widgets
- Flow editor with draggable nodes, connections, and undo/redo
- Client-side undo/redo in both editors
Usage Guide
All commands start with /f and require OP permissions unless otherwise noted.
Basic Commands
/f - Display mod version information
/f reload - Reload configuration file
/f options - View or change mod settings
Say Command
Broadcast messages to all players with rich text formatting and dynamic placeholders (no OP required):
/f say <message>
Formatting Codes:
Use Minecraft color codes with & prefix:
&0-&f - Colors
&l - Bold, &o - Italic, &n - Underline, &m - Strikethrough, &k - Obfuscated
&r - Reset formatting
Custom Styles:
${color:RRGGBB} - Apply hex color (e.g., ${color:FF5733})
${link:url} - Create clickable URL link
${copy:text} - Create click-to-copy text
${hint:text} - Add hover tooltip
${suggest:command} - Suggest command on click
${markdown} - Parse content as Markdown
Player Placeholders:
${player} - Player display name
${health}, ${hp} - Current health
${maxhealth}, ${maxhp} - Maximum health
${level} - Experience level
${hunger} - Hunger level
${saturation} - Saturation level
${x}, ${y}, ${z} - Player coordinates
${pitch}, ${yaw} - Player rotation
${biome} - Current biome
${coord} - Formatted coordinates
${mainhand}, ${offhand} - Item in hand
Examples:
/f say &aHello &b${player}&a! Your HP is ${hp}/${maxhp}
/f say ${color:FF5733}Warning! ${player} is at ${coord}
/f say Check this out: ${link:https://example.com}${hint:Click to open}Click here!
/f say ${suggest:/tp @s yourName}${hint:Click to suggest teleport}Click to teleport to my location
GPT Commands
Configure the GPT server URL and API key in the config first.
/f gpt new <message> - Start a new conversation
/f gpt reply <message> - Reply in current conversation
/f gpt regenerate - Regenerate last response
/f gpt edit <index> <text> - Edit a previous message
/f gpt history [page] - View conversation history
Information Commands
Get information about other players:
/f get coord <player> - Get player coordinates
/f get distance <player> - Get distance to player
/f get health <player> - Get player health
/f get status <player> - Get comprehensive status
/f get inventory <player> - View player inventory
/f get item <player> - See held item
/f get crowd [number] [radius] - Find most crowded entity area
Share your own information (no OP required):
/f share coord - Share your coordinates
/f share distance - Share distance to others
/f share health - Share your health
/f share status - Share comprehensive status
/f share inventory - Share your inventory
/f share item - Share held item
Note Block Song Commands
Place .nbs files in config/fminecraftmod/ folder, then:
/f song play <players> <song> - Play a song
/f song get <players> - Check playback status
/f song cancel <players> - Stop playback
/f song seek <players> <time> - Jump to specific time (seconds)
/f song speed <players> <multiplier> - Set playback speed (e.g., 1.5)
Flow Commands
Create and manage custom automation flows:
/f flow create <name> <event_type> <first_node_name> - Create new flow
/f flow list - List all flows
/f flow enable <name> [true|false] - Enable/disable flow
/f flow rename <old> <new> - Rename flow
/f flow copy <source> <target> - Copy flow
/f flow delete <name> - Delete flow
Edit flows:
/f flow edit <flow> new <node_type> <node_name> - Add node
/f flow edit <flow> remove <node_name> - Remove node
/f flow edit <flow> rename <old> <new> - Rename node
/f flow edit <flow> const <node> <input_index> <value> - Set constant input
/f flow edit <flow> reference <node> <input> <source> <output> - Connect nodes
/f flow edit <flow> disconnect <node> <input> - Disconnect input
/f flow edit <flow> next <node> <branch> <target> - Set next node
/f flow edit <flow> final <node> <branch> - Mark as final node
/f flow edit <flow> undo - Undo last edit
/f flow edit <flow> redo - Redo last undo
Save and load flows:
/f flow save <name> - Save to file (config/fminecraftmod/)
/f flow save * - Save all flows
/f flow load <filename> - Load from file
/f flow load * - Load all .flow files
Trigger and execution:
/f flow history [page] - View execution history
/f flow log <index> - View detailed execution log
/f trigger <trigger_name> [args] - Execute trigger node (no OP required)
Rule Commands
Create and manage custom rules:
/f rule create <name> <event> - Create a rule
/f rule copy <rule> <name> - Copy a rule
/f rule list - List all rules
/f rule enable <name> [true|false] - Enable/disable or query a rule
/f rule rename <old> <new> - Rename a rule
/f rule delete <name> - Delete a rule
Edit rules:
/f rule edit <rule> event <event> - Change the event type
/f rule edit <rule> condition add <type> ... - Add a condition
/f rule edit <rule> condition set <formula> - Set the main condition formula
/f rule edit <rule> condition remove <condition> - Remove a condition
/f rule edit <rule> condition rename <old> <new> - Rename a condition
/f rule edit <rule> action add <type> ... - Add an action (condition met)
/f rule edit <rule> action remove <action> - Remove an action
/f rule edit <rule> action rename <old> <new> - Rename an action
/f rule edit <rule> punish add <type> ... - Add a punishment (condition violated)
/f rule edit <rule> punish remove <action> - Remove a punishment
/f rule edit <rule> punish rename <old> <new> - Rename a punishment
Save, load, and debug:
/f rule save <name> - Save a rule to config/fminecraftmod/
/f rule save * - Save all rules
/f rule load <filename> - Load a rule file, * for all
/f rule view <name> - Show a rule's definition
/f rule history [page] - View rule trigger history
/f rule log <index> - View a detailed trigger log
/f rule test <name> - Evaluate the condition without running actions
/f rule trigger <name> - Trigger the rule and run its actions
Configuration Examples
Enable features using /f options:
/f options serverTranslation [true|false] - Server-side translations
/f options entityDeathMessage [location] - Entity death messages
/f options passiveDeathMessage [location] - Passive entity deaths
/f options hostileDeathMessage [location] - Hostile entity deaths
/f options playerDeathCoordLocation [location] - Player death coordinates
/f options gptUrl [url] - GPT API endpoint
/f options autoLoadRuleFiles [true|false] - Auto-load .rule files on startup
/f options autoLoadFlowFiles [true|false] - Auto-load .flow files on startup
- etc.
Hint: Use Tab to auto complete the command.
评论 0
登录后参与评分
还没有评论,来抢沙发吧