EternalHarvest is a versatile Bukkit/Spigot Minecraft plugin designed to simulate the growth of plants (crops, saplings) and manage their growth even when the server is offline or the chunk is unloaded. It achieves this by persisting plant growth data in an SQLite database (plant_growth.db). The plugin ensures that plants continue to grow based on real-time elapsed since their last update, mimicking natural growth cycles, for server administrators and players who wish to enhance their agricultural and environmental gameplay. This plugin introduces automated plant growth tracking and management, enabling dynamic growth of plants such as wheat, carrots, potatoes, and saplings into trees. It integrates seamlessly with the server environment and provides robust features to manage plant growth cycles and environmental interactions.
Resource Image link:
https://creator.nightcafe.studio/creation/6TRhk5e5f1r0op62MTn5?ru=RuffTrigger
Key Features:
Automatic Growth Tracking: EternalHarvest tracks the growth of planted crops and saplings in real-time using a database backend. This ensures that plants grow naturally and can be managed efficiently.
Database Integration: Utilizing SQLite, EternalHarvest stores and manages plant data, including growth progress, timestamps, and locations, ensuring persistence across server restarts.
Dynamic Tree Growth: Saplings planted with EternalHarvest have a chance to grow into trees based on configured growth times. Upon maturity, trees are generated in-game, enhancing the natural environment.
Bee Hive Integration: With configurable settings, trees grown from saplings can spawn bee hives, adding a touch of realism and interaction with Minecraft's ecosystem.
Configurable Settings: Server administrators can customize growth intervals, bee hive chances, and even enable debug mode for detailed operational insights.
Event-driven Architecture: Leveraging Bukkit's event system, EternalHarvest reacts to player actions like planting or breaking blocks, ensuring seamless integration with existing gameplay mechanics.
Usage Scenario:
Players can plant various crops knowing they will grow autonomously over time, enhancing the farming experience. Server administrators can fine-tune growth parameters and observe growth statistics through the plugin's debug mode, ensuring optimal server performance.
Technical Details:
Java Plugin: Developed in Java using the Bukkit API, ensuring compatibility and performance with Minecraft servers.
Asynchronous Tasks: Utilizes Bukkit's scheduler for non-blocking tasks like database operations, ensuring minimal impact on server performance.
Compatibility: Compatible with Spigot and Bukkit Minecraft server platforms.
yaml:
Code (YAML):
# src/main/resources/config.yml
update-interval-seconds
: 60
# default is 60
maintenance-interval
: 600
# default is 600
vacuum-interval
: 10800
# default is 10800
growth-times:
wheat
: 1200
carrots
: 600
potatoes
: 600
beetroots
: 600
nether_wart
: 2400
sweet_berry_bush
: 400
cocoa
: 600
pumpkin_stem
: 1200
melon_stem
: 1200
kelp
: 1500
sugar_cane
: 1600
cactus
: 1200
oak_sapling
: 1200
birch_sapling
: 1200
spruce_sapling
: 1200
jungle_sapling
: 1200
acacia_sapling
: 1200
dark_oak_sapling
: 1200
cherry_sapling
: 1200
bamboo_sapling
: 800
mangrove_propagule
: 1200
# default is 30% change to spawn the Tall Mangrove Tree
TALL_MANGROVE_CHANGE
: 30
# The chance (0.0 to 1.0) for a bee hive to be added when a tree grows from a sapling
# The default 0.05 gives a 5% chance for the bee hive to be added
bee-hive-chance
: 0.05
# The minimum and maximum number of bees per hive
min-bees-per-hive
: 1
max-bees-per-hive
: 3
debug
: false
# set to true to enable this, if you would like to see the debugging values
License:
This plugin is licensed under the MIT License. See the LICENSE file for more details.
Installation
- Download the latest version
- Upload the plugin to the folder "plugins"
- Restart your server