Levels now increase automatically when you reach the required XP, eliminating the need for the /farm levelup command.
Earn XP by breaking/placing blocks (5 XP), harvesting crops manually (1 XP), or killing monsters in your farm (10 XP).
Each level increases your farm's size by 5 blocks (on X and Z axes).
Manual Crop Harvesting:
Removed automatic crop harvesting. Players must now manually break mature crops to collect them, earning 1 XP and the crop's value in currency.
Crops continue to grow automatically based on light, water, and time conditions (e.g., wheat grows with a 30% chance, poppies at night).
Improvements
Zone Visualization Enhanced:
Restored particle effects for all farm borders (top, bottom, and sides) with optimized sampling (every 2 blocks horizontally, every 20 blocks vertically).
Added continuous particle lines at the four corners from bedrock (Y=0) to the sky limit (Y=319) with a 10-block sampling interval.
Performance Optimization:
Reduced CPU load for the /farm zone command by limiting particle spawning to every 5 ticks and shortening the display duration to 5 seconds.
Bug Fixes
Fixed getMaximumAge Error:
Corrected a compilation error with getMaximumAge() in the manual harvesting logic, ensuring proper handling of mature crops.
Added proper resetting of crop age after manual harvest to maintain growth cycles.
Syntax Correction:
Fixed a syntax issue in the canInteract method where location.getY <= farm.getMaxY() was incorrectly written, now corrected to location.getY() <= farm.getMaxY().
Removed Features
Removed /farm levelup Command:
The manual level-up command has been replaced by automatic leveling based on XP accumulation.
Known Issues
None reported at this time. Please report any bugs or suggestions on the Spigot page!
How to Update
Download the latest version (v1.1) from the Spigot page.
Replace the old farmV1.jar in your plugins/ folder with the new one.
Restart your server to apply the changes.
Existing farms and player data will be preserved thanks to the database system.