⭕ BlockRegen [1.20 - 1.21+] - FREE Block Regeneration & Mining Plugin | Items Adder Support ✨ icon

⭕ BlockRegen [1.20 - 1.21+] - FREE Block Regeneration & Mining Plugin | Items Adder Support ✨ -----

BlockRegen – Automatic Block Regeneration & Farming System for Minecraft Servers



BlockRegen - 2.2 Update
BlockRegen v2.2 - The Compatibility & Optimization Update
This update focuses on improving compatibility with other plugins and introducing a new feature for server optimization based on user feedback.

Bug Fixes
  • Placeholder API Compatibility: A major bug has been fixed where plugins using placeholder statistics (like Statistical) could not correctly track blocks broken by BlockRegen. This was especially noticeable with custom drops.
    • Technical Reason: The BlockBreakEvent was being completely cancelled, which prevented other plugins from processing the event.

    • Solution: The event handling logic in BlockBreakListener.java has been refactored. Instead of cancelling the event, BlockRegen now modifies its properties (e.g., clearing default drops and handling them manually). This makes the block break "visible" to other plugins, allowing them to correctly count scores and statistics while preserving all of BlockRegen's functionalities.
✨ New Features
  • Auto EXP Pickup: A new option, auto-pickup-exp, has been added to blocks.yml.
    • Purpose: This feature is designed to improve server performance by reducing the number of spawned entities (experience orbs).

    • How it works:
      • When set to true, any experience points from breaking the block will be given directly to the player instead of being dropped as an orb.

      • When set to false (or if the line is omitted), the default behavior of dropping an experience orb will occur.
    • Example Usage in blocks.yml:

      COAL_ORE:
      replaced-block: STONE
      regen-delay: 5
      exp-drop-amount: '1-2'
      auto-pickup-exp: true # EXP is given directly to the player
⚙️ Technical Changes
  • BlockBreakListener.java: Significantly refactored to no longer cancel BlockBreakEvent for regen blocks. It now uses event.setDropItems(false) and event.setExpToDrop(0) when custom drops or custom EXP handling is required.

  • BlockData.java: Updated to include the new autoPickupExp boolean field, which is loaded from the blocks.yml configuration.
Thank you for your valuable feedback! These changes should provide a smoother and more optimized experience.
----------, Sep 26, 2025
Resource Information
Author:
----------
Total Downloads: 184
First Release: Aug 19, 2025
Last Update: Oct 6, 2025
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings