Auto Farm Regions
A farming plugin that auto-replants and grows crops, with support for WorldGuard regions and customizable tools.
Auto Farm Regions
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
```yaml
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 ```
<p>
Servers Currently Using This Plugin
<pre>play.primalmc.fun</pre>
Contact us on our Discord server to add your server here.
</p>
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.