Перейти к содержимому
Mineforgian

Auto Farm Regions

A farming plugin that auto-replants and grows crops, with support for WorldGuard regions and customizable tools.

Загрузки
1K
Подписчики
2
Обновлён
26 апреля 2025 г.
Лицензия
MIT

Опубликован 19 апреля 2025 г.

Automatically manage crops in protected farming areas

A lightweight plugin that automates crop harvesting and regrowth inside WorldGuard regions. When a player breaks a mature crop, it's instantly replanted and sent to their inventory. Crops can also regrow automatically after a set time. Immature crops can’t be broken, and harvesting can be limited to specific tools like hoes.

Features:

  • Instantly replants and adds crops to inventory on break
  • Automatically grows crops after a configurable delay
  • Blocks immature crops from being broken
  • Tool restrictions (e.g. hoes only)
  • Fully region-based via WorldGuard
  • Lightweight and open source

All features are restricted to defined WorldGuard regions, ideal for public farms or spawn zones.

Why use this plugin?

I personally use RegionFarm on my EarthSMP server's spawn, where there's a public farm. It keeps the area clean by auto-replanting crops and speeds up growth in that specific region. It’s hands-off farming that fits well into shared spaces and public zones.

Click to expand configuration example
# AutoFarmRegions Configuration
# Version: 1.1
# Support: https://discord.primalmc.fun
#
# This plugin automates farming tasks within WorldGuard regions.
# For help and support, join our Discord server: https://discord.primalmc.fun

# List of WorldGuard region names where auto-farming is enabled
# Example: enabled-regions: [farm1, farm2, wheat-farm]
enabled-regions:
- farm

# Auto-replant settings
auto-replant:
  # Enable or disable automatic replanting of crops
  enabled: true
  
  # If true, crop drops will be added directly to the player's inventory
  # If false, drops will be dropped on the ground
  add-to-inventory: true
  
  # If true and inventory is full, drops will be dropped on the ground
  # If false and inventory is full, drops will be lost
  drop-if-full: false
  
  # Settings for inventory full notifications
  inventory-full-notification:
    # Show a title message when inventory is full
    show-title: false
    
    # Show an action bar message when inventory is full
    show-action-bar: true
    
    # Duration of the title message in ticks (20 ticks = 1 second)
    title-duration: 40

# Automatic crop growth settings
growth:
  # Enable or disable automatic crop growth
  enabled: true
  
  # Time in seconds for crops to grow to maturity
  interval: 60
  
  # Show particle effects when crops grow
  show-particles: true
  
  # Particle type to show when crops grow
  # Available particles: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
  particle: VILLAGER_HAPPY

# Crop protection settings
protection:
  # Prevent players from breaking immature crops
  prevent-immature-break: true
  
  # Show a message when players try to break immature crops
  show-immature-message: false
  
  # Require specific tools to break crops
  require-tools: false
  
  # List of tools that can be used to break crops
  # Only used if require-tools is true
  allowed-tools:
  - WOODEN_HOE
  - STONE_HOE
  - IRON_HOE
  - GOLDEN_HOE
  - DIAMOND_HOE
  - NETHERITE_HOE

Servers Currently Using This Plugin
play.primalmc.fun

Contact us on our Discord server to add your server here.

Support:

Join our Discord for faster help and plugin discussions. Questions get answered quicker there than on other platforms.

RegionFarm is open source, feel free to contribute! If your changes are valuable, we’ll consider merging them into the main release.

Ченджлог

1.3Релиз1.21.3, 1.21.4, 1.21.5 · 26 апреля 2025 г.

New Features

  • Added automatic update checker that notifies admins about new versions
  • Update notifications are sent to both console and players with admin permissions
  • Added direct download links to Modrinth for new versions

Technical Improvements

  • Implemented proper version checking against GitHub releases
  • Added proper error handling for update checks
  • Improved plugin initialization process
  • Added static instance getter for better plugin access

Notes

  • Update checker runs on plugin startup
  • Admins will receive update notifications when joining the server
  • Download links are provided directly to Modrinth for easy updates
1.2Релиз1.21.3, 1.21.4, 1.21.5 · 23 апреля 2025 г.

Changes

  • Added bStats metrics integration
  • Version bump to 1.2

Your existing configuration will work without any changes!

1.1Релиз1.21.3, 1.21.4, 1.21.5 · 21 апреля 2025 г.

This release brings significant performance improvements and optimizations to AutoFarmRegions:

🚀 Performance Improvements:

  • Completely reworked crop growth mechanism for better efficiency
  • Improved synchronization with Bukkit's native growth system
  • Enhanced memory management and reduced resource usage
  • Optimized region processing and crop handling

🔧 Technical Improvements:

  • Removed debug messages for cleaner server logs
  • Fixed unused imports and code cleanup
  • Improved error handling and type safety
  • Better integration with Bukkit's block update system

🎯 Key Changes:

  • More efficient crop growth processing
  • Reduced server load during farming operations
  • Cleaner console output
  • Enhanced stability and reliability

📝 Notes:

  • Compatible with previous configurations
  • No changes required to existing farm regions
  • Recommended for all users to upgrade

To update:

  1. Stop your server
  2. Replace the old .jar file with the new version
  3. Start your server
  4. Existing configurations will work as before
1.0Релиз1.21.3, 1.21.4, 1.21.5 · 19 апреля 2025 г.

Initial release of AutoFarmRegions plugin.

Features:

  • Automatic harvesting and replanting of crops
  • Configurable growth speeds and chain reactions
  • WorldGuard region integration
  • Inventory management
  • Customizable messages and notifications

Installation:

  1. Download the JAR file
  2. Place it in your server's plugins folder
  3. Install WorldGuard if not already installed
  4. Restart your server
  5. Configure the plugin using config.yml

Комментарии

Загружаем…