ReGenCWG: Regenerate Ores in Cubic Worlds for Minecraft

ReGenCWG for Minecraft lets you regenerate ores and replace blocks in existing CubicChunks worlds. Learn how to install and use it.

ReGenCWG

If you have spent countless hours exploring a CubicChunks world in Minecraft, you know the frustration of traveling far from your base just to find a fresh vein of diamonds or iron. The terrain is infinite, but the ores you have already discovered are mined out. This is where ReGenCWG steps in, offering a clever server-side solution to repopulate old, generated chunks with new ores and even replace specific block states. This addon is a game-changer for long-term survival servers and ambitious building projects that rely on the vertical scale that CubicChunks provides.

What Exactly Does ReGenCWG Do?

ReGenCWG is a specialized addon designed for the CubicWorldGen mod. Its primary function is to allow server administrators to generate ores again within already generated and saved cubes. It also provides a powerful block replacement tool. This means you do not need to create a new world to enjoy fresh resources. Instead, you can breathe new life into your existing, explored landscape. The addon works by scanning the world folder, tracking cube coordinates, and then triggering ore generation whenever those specific cubes are loaded and sent to a player.

Key Features at a Glance

  • Ore Regeneration: Re-runs the ore generation pass on existing cubes based on a custom preset file.
  • Block Replacing: Swaps one block state for another across all saved cubes in a dimension, perfect for updating terrain or fixing generation mistakes.
  • Server-Side Only: Clients do not need this mod installed. Vanilla clients can join a server running ReGenCWG without issues.
  • Command Control: Full suite of server commands to manage, reset, or stop the population process.

Prerequisites and Compatibility

Before you can use ReGenCWG, you must have a specific mod setup. This is not a standalone tool. You will need to ensure your server is running MinecraftForge 14.23.3.2658 or higher. Additionally, you must have OpenCubicChunks version 0.0.938 or higher and CubicWorldGen version 0.0.39 or higher. These versions are crucial for the addon to function correctly. The addon is built for the 1.12.2 version of Minecraft, which is the primary version supported by this generation of CubicChunks mods. Always double-check your mod loader versions to avoid crashes or silent failures.

How to Install ReGenCWG

Installing this addon is straightforward, but it requires precision. First, ensure your server has the prerequisite mods installed and running. Once that is confirmed, simply drop the ReGenCWG jar file into your server's mods folder. Restart the server to load the mod. Since it is server-side, you do not need to distribute the file to your players. If you are looking to download ReGenCWG, make sure you grab the correct version for your mod loader. For players who prefer a more streamlined experience, the foxygame.net launcher offers a one-click install for ReGenCWG, automatically handling the dependency checks so you can get your server up and running without manual configuration errors.

Setting Up Ore Regeneration

To start regenerating ores, you need to configure the addon. Navigate to your world save folder and create a new directory path: <world_save_folder>/data/regencwg/. Inside this folder, you must place a standard CubicWorldGen external preset file named custom_generator_settings.json. In this file, you only need to define the ores you want to be generated in the existing cubes. If you want to limit the regeneration to specific areas, you can use the cubeAreas feature and define ores in a sub-preset.

How the Process Works

On the first world load, or when you run the command /regencwg reset 0, the addon scans the world folder for existing cubes and stores their coordinates in memory. This data is saved for subsequent server restarts. When a CubeWatchEvent is fired—which happens whenever a cube is needed to be sent to a client—the addon checks if the cube's coordinates match those in its memory set. If they do, it removes the coordinates from the set and launches the ore generators according to your preset. This ensures that ores are generated just before a player sees the chunk, providing a seamless experience.

Using the Block Replacer Feature

Beyond ores, ReGenCWG can replace blocks. To do this, create a replace_config.json file in the same data/regencwg folder. This file defines what blockstate should be replaced with what blockstate. Alternatively, you can use the command /regencwg replace-config <dimension_id> <config_string> to set the configuration directly, ensuring the string has no spaces. Once the config is loaded, run /regencwg replace <dimension_id> to start the process. The addon will scan the world folder, load each cube from disk, and replace the defined block states.

Essential Server Commands

Managing the regeneration process is done entirely through server commands. Here is a list of the commands added by the mod:

  • /regencwg remaining <dimension_id> - Shows the remaining cubes that need to be populated with ores. The Overworld dimension ID is 0.
  • /regencwg reset <dimension_id> - Rescans the save folder to re-add all saved cube coordinates to the population queue.
  • /regencwg stop <dimension_id> - Completely stops the population process.
  • /regencwg finish <dimension_id> - Populates all cubes at once. Warning: this can hang the server for about one minute per 10,000 cubes.
  • /regencwg replace-config <dimension_id> <config_string> - Overwrites the replacer config for a dimension.
  • /regencwg replace <dimension_id> - Replaces defined blockstates in every saved cube according to the loaded config.

Why Use ReGenCWG for Minecraft?

The primary benefit of ReGenCWG for Minecraft is the ability to refresh your world without resetting it. This is invaluable for servers that have been running for months. Instead of expanding further into the infinite void to find new resources, you can simply regenerate the ores in the areas you already inhabit. This encourages building and exploration within a central hub, rather than spreading players thin across the map. The block replacement feature is also excellent for server owners who want to change the aesthetic of a biome or fix a generation error without using external world-editing tools. For those who are new to modding, the foxygame.net launcher provides an add-on catalog where you can find ReGenCWG and manage its version compatibility with your existing mods, ensuring that your server remains stable and up-to-date.

In conclusion, ReGenCWG is a powerful utility for any serious CubicChunks server. It solves the problem of resource depletion and offers a robust solution for block management. By understanding the how to install process and mastering the commands, you can ensure your world remains vibrant and resource-rich for all players. Whether you are running a small private server or a large public community, this addon is an essential tool for long-term world management.