Config Editor
无需退出游戏即可编辑模组配置文件。
Config Editor 是一款 Fabric 客户端模组,提供功能齐全的文本编辑器、可视化 JSON 编辑器、AI 助手以及方块信息覆盖层——所有功能均可通过游戏内的按键绑定随时访问。
功能
? 游戏内配置编辑器
直接在游戏内打开 .minecraft/config 文件夹中的任何配置文件。再也不用在记事本或 VS Code 之间切换窗口了。
- JSON、TOML、YAML、Properties、CFG 和纯文本的语法高亮显示
- 行号、水平和垂直滚动条
- 查找与替换(Ctrl+F),支持上/下导航
- 自动保存并锁定文件 —— 如果文件正忙,最多重试 3 次
- 尝试关闭时提示未保存更改
- 备份按钮:在编辑前对整个配置目录进行快照
- 打开文件夹按钮:在文件管理器中显示配置目录
- 深色 / 浅色 / 自动主题,带切换按钮
?️ 可视化 JSON 编辑器
切换到针对 JSON 文件的点击式界面。无需记忆语法。
- 添加、重命名、删除和重新排序字段
- 一键更改值类型(字符串 / 数字 / 布尔值 / Null / 对象)
- 支持嵌套对象,可展开/折叠
- 使用上下按钮浏览大型文件
? AI 聊天助手(需要 Ollama)
在不离开游戏的情况下向 AI 咨询有关配置文件的问题。
- 一键将文件或整个文件夹加载到对话中
- 使用本地 Ollama 服务器(默认:
localhost:11434,模型:tinyllama) - 打开时检查服务器可用性 —— 如果 Ollama 未运行,则显示清晰的离线消息
- 可滚动的聊天记录历史
方块信息覆盖层
在游戏过程中显示在屏幕顶部的 Jade/WTHIT 风格 HUD 元素。
- 显示准星所指向方块的方块名称和注册 ID(例如
minecraft:stone) - 在名称旁边显示方块的物品图标
- 半透明背景,带有简洁边框
- 仅在游戏中可见 —— 打开任何屏幕时消失
- 可通过配置文件 (
show_block_overlay) 完全切换
? NBT 查看器
将准星对准实体方块或实体,然后按 NBT 键以打开查看器,将其 NBT 数据显示为格式化的 JSON。可使用自定义文件名将其保存到 saved_nbt/ 目录。
? 插件 API
其他模组可以通过实现 ApiEntrypoint 接口来扩展编辑器功能。内置插件包括:
| 插件 | 功能 |
|---|---|
| 撤销/重做 | 跟踪编辑历史记录 |
| 文本统计 | 显示字符数、单词数和行数 |
| 日期/时间显示 | 在编辑器工具栏中显示当前时间 |
| 自动括号补全 | 自动闭合 (、[、{、" |
在编辑器内的插件按钮中管理哪些插件处于活动状态。
⚡ 性能优化
- 加入/离开世界时的 GC 提示 —— 在新世界开始分配内存之前触发垃圾回收过程,减少导致加入世界卡顿的 RAM 峰值。实践中可释放数百 MB 内存。
- 设置层级时清除粒子 —— 在新世界加载之前丢弃旧世界的过期粒子对象。
- 配置文件每 2 秒最多从磁盘读取一次,而不是每一帧或每次按键都读取。
安装
- 安装 Fabric Loader 和 Fabric API
- 将
config_editor-*.jar放入mods/文件夹 - 启动游戏
要求:
- Minecraft
26.1 - Fabric Loader
≥ 0.18.2 - Fabric API
- Java
≥ 21
AI 聊天功能额外需要在本地运行 Ollama 并拉取模型(例如 ollama pull tinyllama)。
使用方法
所有三个按键绑定默认均未绑定。请在选项 → 控制 → 游戏内中进行分配。
| 按键绑定 | 操作 |
|---|---|
| 打开编辑器 | 打开配置文件编辑器 |
| 打开 AI 聊天 | 打开 AI 聊天助手 |
| NBT 显示 | 打开目标方块/实体的 NBT 查看器 |
配置文件
模组自身的设置存储在 .minecraft/config/editor_config.json,既可以在游戏内编辑,也可以使用任何文本编辑器编辑。
{
"readonly_mode": false,
"hint": true,
"theme": "DARK",
"doRenderBackground": false,
"doSuggestions": true,
"show_block_overlay": true
}
| 键 | 类型 | 默认值 | 描述 |
|---|---|---|---|
readonly_mode |
boolean | false |
防止编辑文件(仅查看模式) |
hint |
boolean | true |
自动闭合括号和引号 |
theme |
string | "DARK" |
编辑器主题:DARK、LIGHT 或 AUTO |
doRenderBackground |
boolean | false |
在编辑器后面绘制主题背景 |
doSuggestions |
boolean | true |
输入时显示自动完成建议 |
show_block_overlay |
boolean | true |
显示方块信息 HUD 覆盖层 |
面向模组开发者 — 插件 API
您可以通过实现 ApiEntrypoint 并在 fabric.mod.json 中通过 Fabric entrypoint 系统注册它,向编辑器添加自定义行为:
"entrypoints": {
"config_editor": [
"com.example.yourmod.YourEditorPlugin"
]
}
public class YourEditorPlugin implements ApiEntrypoint {
@Override
public void init() { }
@Override
public void renderButton(GuiGraphicsExtractor context, int mouseX, int mouseY, float delta) {
// 在编辑器上方绘制自定义 HUD 元素
}
@Override
public InteractionResult onType(int keyCode, int scanCode, int modifiers) {
// 拦截按键 —— 返回 FAIL 以消耗该事件
return InteractionResult.PASS;
}
}
链接
许可证
Config Editor
Edit your mod config files without ever leaving the game.
Config Editor is a Fabric client-side mod that gives you a full-featured text editor, a visual JSON editor, an AI assistant, and a block info overlay — all accessible with a keybind while you play.
Features
? In-Game Config Editor
Open any config file from your .minecraft/config folder directly inside the game. No more alt-tabbing to Notepad or VS Code.
- Syntax highlighting for JSON, TOML, YAML, Properties, CFG, and plain text
- Line numbers, horizontal and vertical scrollbars
- Find & Replace (Ctrl+F) with previous/next navigation
- Auto-save with file locking — retries up to 3 times if the file is busy
- Unsaved-changes warning when you try to close
- Backup button to snapshot your entire config directory before editing
- Open Folder button to reveal the config directory in your file manager
- Dark / Light / Auto theme with a toggle button
?️ Visual JSON Editor
Switch to a point-and-click interface for JSON files. No need to remember syntax.
- Add, rename, delete, and reorder fields
- Change value types (String / Number / Boolean / Null / Object) with one click
- Nested object support with expand/collapse
- Scroll through large files with up/down buttons
? AI Chat Assistant (requires Ollama)
Ask an AI about your config files without leaving the game.
- Loads a file or entire folder into the conversation with one click
- Uses a local Ollama server (default:
localhost:11434, model:tinyllama) - Server availability check on open — shows a clear offline message if Ollama is not running
- Scrollable chat history
� Block Info Overlay
A Jade/WTHIT-style HUD element shown at the top of the screen while you play.
- Displays the block name and registry ID (e.g.
minecraft:stone) of whatever your crosshair is pointing at - Shows the block's item icon next to the name
- Semi-transparent background with a clean border
- Only visible in-game — disappears when any screen is open
- Fully toggleable via the config file (
show_block_overlay)
? NBT Viewer
Point your crosshair at a block entity or entity and press the NBT key to open a viewer showing its NBT data as formatted JSON. Save it to saved_nbt/ with a custom filename.
? Plugin API
Other mods can extend the editor by implementing the ApiEntrypoint interface. Built-in plugins include:
| Plugin | What it does |
|---|---|
| Undo/Redo | Tracks edit history |
| Text Stats | Shows character, word, and line count |
| Date/Time Display | Shows the current time in the editor toolbar |
| Auto Bracket Completion | Automatically closes (, [, {, " |
Manage which plugins are active from the Plugins button inside the editor.
⚡ Performance Optimisations
- GC hint on world join/leave — triggers a garbage collection pass before the new world starts allocating memory, reducing the RAM spike that causes join-world lag. Frees hundreds of MB in practice.
- Particle clear on level set — drops stale particle objects from the old world before the new one loads.
- Config is read from disk at most once every 2 seconds, not on every frame or keystroke.
Installation
- Install Fabric Loader and Fabric API
- Drop
config_editor-*.jarinto yourmods/folder - Launch the game
Requirements:
- Minecraft
26.1 - Fabric Loader
≥ 0.18.2 - Fabric API
- Java
≥ 21
The AI Chat feature additionally requires Ollama running locally with a model pulled (e.g. ollama pull tinyllama).
Usage
All three keybinds are unbound by default. Assign them in Options → Controls → Gameplay.
| Keybind | Action |
|---|---|
| Open Editor | Opens the config file editor |
| Open AI Chat | Opens the AI chat assistant |
| NBT Display | Opens the NBT viewer for the targeted block/entity |
Config File
The mod's own settings are stored at .minecraft/config/editor_config.json and are editable both in-game and with any text editor.
{
"readonly_mode": false,
"hint": true,
"theme": "DARK",
"doRenderBackground": false,
"doSuggestions": true,
"show_block_overlay": true
}
| Key | Type | Default | Description |
|---|---|---|---|
readonly_mode |
boolean | false |
Prevent editing files (view-only mode) |
hint |
boolean | true |
Auto-close brackets and quotes |
theme |
string | "DARK" |
Editor theme: DARK, LIGHT, or AUTO |
doRenderBackground |
boolean | false |
Draw a themed background behind the editor |
doSuggestions |
boolean | true |
Show autocomplete suggestions while typing |
show_block_overlay |
boolean | true |
Show the block info HUD overlay |
For Mod Developers — Plugin API
You can add custom behaviour to the editor by implementing ApiEntrypoint and registering it via the Fabric entrypoint system in your fabric.mod.json:
"entrypoints": {
"config_editor": [
"com.example.yourmod.YourEditorPlugin"
]
}
public class YourEditorPlugin implements ApiEntrypoint {
@Override
public void init() { }
@Override
public void renderButton(GuiGraphicsExtractor context, int mouseX, int mouseY, float delta) {
// Draw custom HUD elements over the editor
}
@Override
public InteractionResult onType(int keyCode, int scanCode, int modifiers) {
// Intercept keystrokes — return FAIL to consume the event
return InteractionResult.PASS;
}
}
Links
License
下载 config-editor-render
下载 config-editor-render
下载 config-editor-render
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 config-editor-render
下载 config-editor-render
下载 config-editor-render
下载 config-editor-render
下载 config-editor-render
下载 config-editor-render
下载 config-editor-render
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
原版世界生成优化模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧