RegenZones logoRegenZones

Configuration

Walking through config.yml section by section.

config.yml holds every server-wide setting. Region specific rules live in regions.yml instead, see Selection and Regions and Block Rules. Every key already carries a plain comment in the file itself, this page mirrors those comments.

config-version is used by the plugin to auto-update the file on upgrades. Do not edit it.

Language

language: en_US

The language file used from the lang folder. Drop your own file in there and write its name here to use a custom translation. See Messages and Language.

Storage

storage:
  type: sqlite
  mysql:
    host: localhost
    port: 3306
    database: regenzones
    username: root
    password: ""
    pool-size: 10

type is sqlite or mysql. SQLite needs no setup. The mysql block only matters when type is mysql. See Storage for detail.

Selection

selection:
  wand-item: GOLDEN_AXE
  wand-name: "<GRADIENT:55FF55>RegenZones Wand</GRADIENT:00AA00>"
  wand-lore:
    - "&aLeft click &fto set position 1"
    - "&aRight click &fto set position 2"
  use-worldedit-selection: true
  max-region-volume: 0
KeyWhat it controls
wand-itemThe item given by /rz wand
wand-nameName shown on the wand
wand-loreLore shown on the wand
use-worldedit-selectionUse the player's WorldEdit selection when they have no plugin selection
max-region-volumeBiggest region allowed, in blocks. 0 means no limit

Defaults

defaults:
  regen-time: 30s
  replace-with: BEDROCK
  drops: true
  experience: true
  collect-to-inventory: false
  delay-placed: false
  harvest: false

Used when a block rule does not set its own value for that field. This is the last stop in the resolution order.

KeyWhat it controls
regen-timeTime before the block comes back. Accepts 30s, 5m, 1h or a plain number of seconds
replace-withBlock shown while the original block is away. AIR leaves an empty space. A list shows each in turn, see Growth stages
dropsGive the normal drops when the block is broken
experienceGive the normal experience when the block is broken
collect-to-inventoryGive drops straight to the breaking player's inventory instead of dropping them, per region with /rz collect <name> [on/off]
delay-placedA handled block a player places inside the region goes straight into its delay state, per region with /rz placed <name> [on/off]. See Regeneration Engine
harvestRight-clicking a handled block takes it with its drops and puts its replacement in, per rule with /rz setharvest. See Right-click harvest

Sources

sources:
  player-break: true
  explosion: false
  piston: false
  mob: false

What is allowed to start a regeneration cycle. See Protection and Break Sources.

Protection

protection:
  block-break: true
  block-place: true
  piston: true
  explosion: true
  strict-lock: true
  strict-creative-lock: false
  physics: true
  growth: true
  deny-message: ACTION_BAR
  deny-message-cooldown: 3s
  deny-message-grace: 2s
  dig-guard: 2s

What is blocked while a block is mid-regen, and how a player is told. See Protection and Break Sources, including what strict-lock, physics and growth add on top of the four toggles above.

KeyWhat it controls
deny-messageWhere "that block is locked" messages go: ACTION_BAR above the hotbar, CHAT, or NONE
deny-message-cooldownShortest gap between two of those messages to the same player
deny-message-graceNo message for this long after a block is taken, 0s turns it off
dig-guardFor this long after a block is taken, and while a held swing continues, its placeholder cannot be broken by anyone, ops included. A crop placeholder shows as empty to the swinging player. 0s turns it off

Regeneration

regeneration:
  regen-in-unloaded-chunks: true
  blocks-per-tick: 50
  regen-all-on-shutdown: false
  effects:
    enabled: true
    sound: BLOCK_STONE_PLACE
    particle: BLOCK
KeyWhat it controls
regen-in-unloaded-chunksBring blocks back even when the chunk is not loaded
blocks-per-tickBlocks brought back per tick. Keeps large regions smooth
regen-all-on-shutdownBring every waiting block back when the server stops
effects.enabledPlay a sound and a particle when a block comes back
effects.soundThe sound played
effects.particleThe particle played

See Regeneration Engine for how these fit into the full lifecycle.

Farm

farm:
  preserve-farmland: false
  growth-interval: 10s
  growth-amount: 1
  max-volume: 0
KeyWhat it controls
preserve-farmlandDefault for whether a region's farmland survives drying out and trampling
growth-intervalHow often a flagged region's crops advance a growth stage
growth-amountGrowth stages added per interval
max-volumeBiggest region the farm flag is honoured on, in blocks. 0 means no limit

preserve-farmland here is only the default, /rz farmland <name> [on/off] sets it per region. See Farm Zone.

ItemsAdder

itemsadder:
  enabled: true

Explicit off switch for custom block regen, even when ItemsAdder is installed and detected. See Block Rules.

Reloading

/rz reload reloads config.yml, regions.yml, blocks.yml and the active language file without restarting the server.

On this page