Compatibility
Minecraft: Java Edition
1.21.x
1.20.1–1.20.6
Platforms
Supported environments
Creators
Details
Config Editor - Minecraft Mod
A professional in-game configuration file editor for Minecraft, providing advanced editing capabilities with syntax highlighting, real-time validation, and extensible plugin system.
If you find any issues, please report to https://github.com/zhengzhengyiyi/config-editor/issues
Thank you for downloading my mod!
Next version will coming soon. Your support means everything! If you have any ideas, please post on github discussions
Known Issues
- Please download version 1.1.3, there is some issue in version under 1.1.3
- May be have some unknown file lock issue.
How to set keybinding
Set keybinding for 1.21.5-1.21.8

Features
Professional Text Editing
- Advanced Syntax Highlighting: Full support for multiple file formats with color-coded syntax highlighting
- Multi-Format Support: JSON, Properties, TOML, YAML, CFG, INI, and plain text files
- Real-time Validation: Instant error checking with visual indicators and tooltips
- Multi-line Editor: Support for large configuration files with scrollable interface
- Intelligent Search: Text search engine with highlight and navigation
User Experience
- File Management: Browse and switch between configuration files easily
- Visual Feedback: Clear modification indicators and confirmation dialogs
- Theme Support: Dark, Light, and Auto themes with customizable backgrounds
- Accessibility: Full keyboard navigation and screen reader support
Advanced Capabilities
- Auto-completion: Code suggestions based on file structure and common patterns
- Backup System: Automatic backup creation with configurable retention
- Performance Monitoring: Built-in performance tracking for large files
- File Navigation: Easy browsing through config directory with scrollable file list
New Features
AI-Powered Assistance
- AIChatScreen: Integrated AI chat interface for configuration assistance
- Local AI Integration: Connect with local Ollama AI server for intelligent suggestions
- Code Generation: AI-powered code completion and configuration generation
- Smart Troubleshooting: AI-assisted error diagnosis and fixes
NBT Editor Integration
- NbtEditorScreen: Advanced NBT (Named Binary Tag) editing capabilities
- NBT Compound Support: Full support for Minecraft NBT data structures
- Visual NBT Navigation: Easy browsing and editing of complex NBT data
- NBT File Saving: Save and load NBT data to/from files
Enhanced Developer Tools
- PerformanceMonitor: Comprehensive performance tracking and optimization
- FileLockUtil: Advanced file locking mechanisms for safe concurrent access
- TextSearchEngine: Powerful search functionality with regex support
- CodeSuggester: Intelligent code suggestions based on context
Developer API (Fabric and NeoForge)
Config Editor provides a comprehensive API for developers to extend functionality through plugins:
Core API Interface
build.gradle
dependencies {
implementation("io.github.zhengzhengyiyi:config_editor:project.config_editor_version")
}
gradle.properties
config_editor_version=1.1.4+1.21.5
public interface ApiEntrypoint {
// Plugin initialization
void init();
// Editor lifecycle events
void onEditerOpen(EditorScreen editor);
void onEditerClose(EditorScreen editor);
// Input handling with precise control
ActionResult onMouseDown(int x, int y);
void onMouseScroll();
ActionResult onType(int keyCode, int scanCode, int modifiers);
ActionResult onCharTyped(char character, int modifiers);
// Custom rendering capabilities
void renderButton(DrawContext context, int mouseX, int mouseY, float delta);
}
Built-in Plugins Examples
The mod includes several example plugins demonstrating API capabilities:
// Auto bracket completion
public class AutoBracketCompletionEntrypoint implements ApiEntrypoint
// Date-time display in editor
public class DateTimeDisplayEntrypoint implements ApiEntrypoint
// Text statistics and analytics
public class TextStatsEntrypoint implements ApiEntrypoint
// Undo/redo functionality
public class UndoRedoEntrypoint implements ApiEntrypoint
// AI integration features
public class AiClient implements ApiEntrypoint
// NBT editing capabilities
public class NbtEditorScreen implements ApiEntrypoint
Advanced Plugin Development
public class AdvancedPlugin implements ApiEntrypoint {
private static final Logger LOGGER = ApiEntrypoint.LOGGER;
@Override
public void init() {
LOGGER.info("Advanced plugin initialized with custom features");
}
@Override
public ActionResult onType(int keyCode, int scanCode, int modifiers) {
// Custom keyboard shortcuts
if (keyCode == GLFW.GLFW_KEY_F1 && hasControlDown()) {
showCustomHelp();
return ActionResult.FAIL; // Prevent default handling
}
return ActionResult.PASS; // Allow normal processing
}
@Override
public void renderButton(DrawContext context, int mouseX, int mouseY, float delta) {
// Add custom UI elements to editor
context.drawText(context.getTextRenderer(), "Custom Plugin", 10, 10, 0xFFFFFF, false);
}
}
Action Result System
SUCCESS: Event handled successfully, continue processingPASS: Allow other plugins to handle the eventFAIL: Event handled completely, stop propagation
Registration in fabric.mod.json
{
"entrypoints": {
"config_editor": [
"com.yourmod.YourCustomPlugin",
"com.yourmod.AnotherPlugin"
]
}
}
NeoForge Support
The API now fully supports NeoForge alongside Fabric, providing cross-platform compatibility for mod developers.
Technical Features
Performance Optimization
- Efficient Rendering: Optimized text rendering for large files
- Memory Management: Smart caching and resource cleanup
- Async Operations: Non-blocking file operations
- PerformanceMonitor: Real-time performance tracking and statistics
File Handling
- Safe File Operations: File locking and conflict detection with FileLockUtil
- Error Recovery: Automatic recovery from corrupted files
- Encoding Support: Full UTF-8 support with proper encoding detection
- Backup System: Configurable backup retention and management
AI Integration
- Local AI Server Support: Integration with Ollama for local AI processing
- Chat Interface: Dedicated AIChatScreen for AI-assisted configuration
- Smart Suggestions: Context-aware code suggestions and completions
- Error Diagnosis: AI-powered error detection and solution recommendations
NBT Editing
- Visual NBT Editor: User-friendly interface for NBT data manipulation
- Compound Structure Support: Full support for complex NBT hierarchies
- File Operations: Save and load NBT data from files
- Real-time Validation: NBT structure validation and error highlighting
Supported File Types
- JSON Configuration Files (
.json) - Properties Files (
.properties) - TOML Files (
.toml) - YAML Files (
.yml,.yaml) - Configuration Files (
.cfg,.conf,.ini) - Text Files (
.txt) - NBT Data Files (
.nbt,.dat)
Keybindings
- Config Editor: Open main configuration editor (default: unbound - set in controls)
- NBT Editor: Open NBT data editor (default: unbound - set in controls)
- AI Chat: Open AI assistance interface (default: unbound - set in controls)
Happy configuring!
If you find this mod useful, please consider giving it a star on Modrinth!



