Command History Plus 是一款轻量级的 客户端 Fabric 模组,它会在屏幕右侧的紧凑叠加层中保存你最近的命令记录,方便随时查看。
功能特性
- 屏幕内历史记录叠加层
- 在 HUD 右侧显示你最近的
/commands。
- 支持鼠标滚轮滚动以浏览更早的记录。
- 悬停高亮显示,并使用 ? 图标标记已固定的命令。
- 聊天框内的点击交互
- 在打开聊天框时 左键点击 某条记录:
- 将命令插入到聊天输入框中,或者
- 如果启用了 即时发送 功能,则立即发送该命令。
- 右键点击 可从历史记录中移除该命令。
- 固定命令
- 让重要命令始终保持在列表顶部。
- 固定条目也会在
/chp pin 和 /chp unpin 命令中提供自动补全建议。
- 按世界/服务器独立的历史记录
- 为以下情况分别维护历史记录配置:
- 可选模式:将每个配置单独存储在一个 JSON 文件中(默认启用)。
- 可配置的历史记录
- 可选限制存储条目数量(
historyLimit,设为 0 表示无限制)。
- 可选择对点击操作或快速插入热键启用 即时发送。
- 异步且防抖动的保存机制,避免频繁写入磁盘。
- 搜索功能
- 按下搜索热键并在聊天框中输入文字,即可通过子字符串过滤叠加层中的内容。
按键绑定
所有按键绑定均为客户端行为,可在 Minecraft 的 控制选项 菜单中进行更改。
切换历史叠加层显示 (默认为 H)– 显示/隐藏叠加层。
插入上一条命令 (默认为 ↑)– 将最新的命令插入到聊天框。
插入选中命令 (默认为 ↓)– 插入当前悬停或位于顶部的命令。
在历史记录中搜索 (默认为 F)– 切换搜索模式;激活时,当前聊天框文本将作为过滤条件。
命令
所有命令均为 客户端 命令,仅影响本地的历史记录。
-
/chp help
显示包含所有子命令的简短帮助信息。
-
/chp clear
清除当前配置文件下的历史记录。
-
/chp reload
从磁盘重新加载历史记录和设置(适用于手动编辑配置文件后使用)。
-
/chp pin <command>
固定一条命令,使其显示在列表顶部。支持从历史记录和已固定命令中自动补全。
-
/chp unpin <command>
取消之前固定的命令。支持从已固定命令中自动补全。
-
/chp instantsend <true|false|toggle>
启用 / 禁用 / 切换 即时发送 模式:
- 当开启时,左键点击条目(或使用快速插入热键)会立即发送命令。
- 当关闭时,命令仅被插入到聊天输入框中。
数据存储
模组将其数据存储在以下位置:
config/command_history_plus/config.json – 全局设置以及可选的嵌入式配置文件。
配置文件与独立文件
以下选项控制历史记录的存储方式:
separateProfileFiles (默认值:true)
true – 每个配置文件单独存储为一个 JSON 文件:
- 单人游戏世界:
config/command_history_plus/singleplayer/<world>.json
- 服务器:
config/command_history_plus/servers/<address>.json
- 其他配置文件(包括
global):config/command_history_plus/profiles/<id>.json
false – 所有配置文件统一存储在 config.json 的 "profiles" 对象下(兼容旧版模式,保留用于向后兼容)。
其他重要选项:
instantSend – 是否启用即时发送功能。
historyLimit – 每个配置文件的最大条目数(0 表示无限制)。
本地化
Command History Plus 目前提供以下语言的本地化支持:
- 英语 (
en_us)
- 俄语 (
ru_ru)
- 西班牙语(西班牙)(
es_es)
- 西班牙语(墨西哥)(
es_mx)
- 葡萄牙语(巴西)(
pt_br)
- 德语 (
de_de)
- 法语 (
fr_fr)
Minecraft 会根据你的客户端语言设置自动选择匹配的语言包。
Command History Plus is a lightweight client‑side Fabric mod that keeps your recent commands at hand in a compact overlay on the right side of the screen.
Features
- On‑screen history overlay
- Shows your recent
/commands on the right side of the HUD.
- Mouse wheel scrolling to browse older entries.
- Hover highlight and ? icon for pinned commands.
- Click interaction in chat
- Left‑click on an entry while chat is open:
- Inserts the command into the chat box, or
- Sends it instantly if instant send is enabled.
- Right‑click removes a command from history.
- Pinned commands
- Keep important commands always at the top of the list.
- Pinned entries are also suggested for
/chp pin and /chp unpin.
- Per‑world / per‑server history
- Separate history profiles for:
- Singleplayer worlds.
- Multiplayer servers.
- Optional mode to store each profile in its own JSON file (enabled by default).
- Configurable history
- Optional limit on the number of stored entries (
historyLimit, 0 = unlimited).
- Option to use instant send for clicks or quick‑insert hotkeys.
- Asynchronous, debounced saving to avoid disk spam.
- Search
- Press the search hotkey and type in chat to filter the overlay by substring.
Keybindings
All keybindings are client‑side and can be changed in Minecraft’s Controls menu.
Toggle history overlay (H by default) – show/hide the overlay.
Insert last command (↑ by default) – insert the most recent command into chat.
Insert selected command (↓ by default) – insert the currently hovered/top command.
Search in history (F by default) – toggle search mode; when active, the current chat text is used as a filter.
Commands
All commands are client‑side and only affect your local history.
-
/chp help
Show a short help message with all subcommands.
-
/chp clear
Clear the current profile’s history.
-
/chp reload
Reload history and settings from disk (useful after editing config files by hand).
-
/chp pin <command>
Pin a command so it appears at the top of the list. Auto‑completes from your history and pinned commands.
-
/chp unpin <command>
Unpin a previously pinned command. Auto‑completes from pinned commands.
-
/chp instantsend <true|false|toggle>
Enable / disable / toggle instant send mode:
- When on, left‑clicking an entry (or using quick‑insert hotkeys) immediately sends the command.
- When off, the command is only inserted into the chat box.
Data Storage
The mod stores its data under:
config/command_history_plus/config.json – global settings and, optionally, embedded profiles.
Profiles and separate files
The following option controls how histories are stored:
separateProfileFiles (default: true)
true – each profile is stored in its own JSON file:
- Singleplayer worlds:
config/command_history_plus/singleplayer/<world>.json
- Servers:
config/command_history_plus/servers/<address>.json
- Other profiles (including
global): config/command_history_plus/profiles/<id>.json
false – all profiles are stored together in config.json under the "profiles" object (legacy mode, kept for backwards compatibility).
Other important options:
instantSend – whether instant send is enabled.
historyLimit – maximum number of entries per profile (0 = unlimited).
Localization
Command History Plus currently ships with localization for:
- English (
en_us)
- Russian (
ru_ru)
- Spanish (Spain) (
es_es)
- Spanish (Mexico) (
es_mx)
- Portuguese (Brazil) (
pt_br)
- German (
de_de)
- French (
fr_fr)
Minecraft will automatically pick the language that matches your client settings.
评论 0
登录后参与评分
还没有评论,来抢沙发吧