Regen Zones

Regen Zones are areas, such as mines or farms, where blocks regenerate automatically a set time after being broken by a player. This allows for continuous resource gathering without manual resets.

Creating a Regen Zone

To create a zone, add a new .yml file in the plugins/EdTools/zones/ directory. The name of this file will be the Zone ID.

Example: zones/main-crops.yml

# The name of the world where the zone is located.
world: world
# The two opposite corners defining a cuboid region for the zone.
# This will be used to check if a player is between the bounding box and
# automatically load the zone
min-corner: 4,5,6
max-corner: 3,6,3
# Will automatically load the zone if the player is in the bounding box. Will set automatically the first blocks section (WHEAT) in this case
load-if-player-in-bounding-box: true
# A list of OmniTool IDs that are allowed to break blocks in this zone.
allowed-tools:
  - "crop-tool"
# The block that appears as a placeholder while a block is waiting to regenerate.
replacement-block: AIR
# The time in seconds it takes for a broken block to regenerate.
replacement-time: 4

# This section defines the types of blocks that can spawn in this zone.
blocks:
  # Block set '1'. Players can choose which set they want to mine if multiple are available.
  '1':
    WHEAT: # The Minecraft material of the block.
      chance: 1 # The chance (0.0 to 1.0) for this block to be chosen when regenerating.
      drops:
        '1': # A unique ID for this drop rule.
          item: wheat-tier1 # The item ID from item-prices.yml to give to the player.
          chance: 1 # The chance for this drop to occur.
  # Block set '2' could contain different blocks, like POTATOES.
  '2':
    POTATOES:
      chance: 1
      drops:
        '1':
          item: wheat-tier1
          chance: 1

# A list of specific vector locations for the zone.
# This is ideal for non-cuboid shapes or scattered blocks.
# Use the Zone Wand to easily add to this list.
locations:
  - 1,75,34
  - 2,75,34

Zone Wand

The wand is an administrator tool designed to make it easy to select block locations for a zone without manually typing coordinates.

  • Get the wand: /edtools wand <zone_id> [radius]

  • How to Use: Right-click any block in the world to add its position to the specified zone's locations list in its configuration file.

  • Saving: The new positions are automatically saved to the zone's .yml file.

Last updated

Was this helpful?