Create Region

The core mechanic of the plugin is the "Regen Region." Blocks will only regenerate if they are inside one of these regions.

  1. Get the Wand: Type the command /blockregen wand. You will receive the "Region Selection Wand."

  2. Select Position 1: Left-click a block with the wand to set the first corner of your region.

  3. Select Position 2: Right-click a block with the wand to set the second corner. This will create a 3D cuboid selection.

  4. Save the Region: Use the command /blockregen save <region_name>. Replace <region_name> with a unique name for your region (e.g., /blockregen save DiamondMine).

That's it! Any blocks within this newly created region that are configured in blocks.yml will now regenerate after being broken.

Integrating with WorldGuard (Optional)

You can use WorldGuard to protect your regen areas and ensure players can only break the blocks you have configured.

  1. Enable Integration: In config.yml, set worldguard.enabled to true.

  2. Create a WorldGuard Region: Use WorldEdit and WorldGuard to create a region that covers the same area as your BlockRegen region (e.g., /rg define DiamondMineWG).

  3. Set the block-break Flag: Use the command /rg flag DiamondMineWG block-break allow. This allows players to break blocks inside this specific WorldGuard region. By default, WorldGuard's global region usually denies block breaking.

  4. Configure disable-other-break: In config.yml, you can set worldguard.disable-other-break to true. This is a powerful feature: when enabled, players inside the DiamondMineWG region will only be able to break blocks defined in your blocks.yml (like DIAMOND_ORE). They will not be able to break any other blocks (like the surrounding stone or dirt), effectively protecting the structure of your mine.

Last updated