Overview
Voxy World Gen V2 integrates with ModMenu to provide an intuitive in-game configuration screen. This integration uses Cloth Config to render a beautiful, user-friendly interface for all mod settings.Accessing Configuration
To access the configuration screen:Available Settings
The configuration screen provides access to all Voxy World Gen V2 settings:Enabled
Master toggle for the entire mod.When disabled, Voxy World Gen V2 will not generate any LOD chunks. Existing chunks are unaffected.
- Temporarily disable LOD generation for troubleshooting
- Reduce server load during events
- Test performance impact of the mod
F3 Stats Display
Show generation statistics in the F3 debug screen.Displays:
- Active generation tasks
- Queue size
- Chunks generated per second
- Total chunks generated
The F3 stats are useful for monitoring performance and understanding generation behavior.
Generation Radius
Maximum distance (in chunks) from players to generate LOD chunks.This defines how far ahead of players the system generates terrain.
- Low-end systems: 64-96 chunks
- Mid-range systems: 128-192 chunks
- High-end systems: 192-256 chunks
- Tellus worlds: 128+ chunks (enforced minimum)
Update Interval
How often (in ticks) to check for new chunks to generate.20 ticks = 1 second at normal game speed.
- Lower values (5-10): More responsive, higher CPU usage
- Default (20): Balanced performance
- Higher values (40-100): Lower CPU usage, slower response to player movement
Max Queue Size
Maximum number of chunks that can be queued for generation.When the queue is full, new generation requests are ignored until space is available.
- Each queued chunk uses approximately 100 bytes
- Default (20,000) ≈ 2MB RAM
- Maximum safe value: 50,000-100,000 depending on available RAM
Max Active Tasks
Maximum number of chunks that can be generated simultaneously.This controls parallelism and directly impacts generation speed.
- Dual-core CPU: 4-8 tasks
- Quad-core CPU: 8-16 tasks
- 6-8 core CPU: 16-24 tasks
- 12+ core CPU: 24-48 tasks
- Tellus worlds: 20-40 tasks (benefits from higher parallelism)
Save Normal Chunks
Whether to save LOD chunks to disk when they’re converted to normal chunks.When a player approaches a LOD chunk, it’s converted to a normal chunk. This setting determines if the data is persisted.
- Enabled: Chunks remain after server restart, faster loading
- Disabled: Reduces disk usage, chunks regenerate on demand
Configuration Screen Layout
The ModMenu integration provides a clean, organized interface:Implementation Details
The ModMenu integration is implemented using the ModMenu and Cloth Config APIs:Configuration Entries
Each setting uses Cloth Config’s entry builders:Boolean Toggle
Boolean Toggle
Integer Slider
Integer Slider
Integer Field
Integer Field
Save Behavior
When the user clicks Done, the configuration is saved and the system reloads:Configuration changes take effect immediately without requiring a restart.
Translation Keys
The integration uses translation keys for internationalization:Configuration File
Settings are persisted toconfig/voxyworldgenv2.json:
The in-game configuration screen is the recommended way to change settings as it validates input and applies changes immediately.
Auto-Configuration on First Run
On first launch, the mod automatically configures itself based on your hardware:Troubleshooting
Config Button Missing
Config Button Missing
Changes Not Saving
Changes Not Saving
Symptoms: Settings revert after closing the screenCauses:
- File permission issues
- Config directory doesn’t exist
- Disk full
- Check file permissions on
config/voxyworldgenv2.json - Verify config directory exists and is writable
- Free up disk space
Invalid Values
Invalid Values
Symptoms: Settings accept invalid values or cause crashesCauses:
- Direct config file editing with invalid JSON
- Corrupted config file
- Delete
config/voxyworldgenv2.jsonto regenerate defaults - Use the in-game UI which validates all input
- Check logs for JSON parsing errors
Source Code Reference
The ModMenu integration is implemented in:- Lines 11-19: Config screen factory and builder setup
- Lines 22-26: Enabled toggle
- Lines 28-32: F3 stats toggle
- Lines 34-38: Generation radius slider
- Lines 40-44: Update interval slider
- Lines 46-50: Max queue size field
- Lines 52-56: Max active tasks slider
- Lines 58-62: Save chunks toggle
- Lines 64-67: Save handler
- Lines 14-15: Config file path and GSON setup
- Lines 19-38: Config loading with auto-configuration
- Lines 40-49: Config saving
- Lines 51-59: ConfigData class with all settings
Related Documentation
Configuration Overview
Learn about all configuration options in detail
Advanced Settings
Fine-tune performance and behavior
Performance Tuning
Optimize settings for your hardware
Troubleshooting
Solve common configuration issues