Changelog: Right-Click Harvest Plugin
v1.0.1 - Improvements, Fixes, and Enhancements
New Features:
-
Farmland Protection:
- Added a new configuration option (
prevent_farmland_destruction
) to prevent farmland from being trampled when players walk on it. - Automatically cancels player interactions that could turn farmland into dirt.
- Added a new configuration option (
-
Expanded Crop Support:
- Added full support for Cocoa harvesting (Cocoa beans are now harvested but not replanted).
- Now supports non-replantable crops such as Melons and Pumpkins, allowing them to be harvested with right-click without replanting.
Improvements & Enhancements:
-
Auto-Replanting System:
- Crops that support auto-replanting (e.g., Wheat, Carrots, Potatoes, Beetroots, and Nether Wart) now properly reset to the initial growth stage after being harvested.
-
Improved XP Drop System:
- XP drops are now based on configurable probabilities per tool type.
- The XP amount is now affected by a tool multiplier and the base XP setting.
- Fixed an issue where XP would not always drop correctly when using certain tools.
-
Enhanced Tool Durability Management:
- Implemented durability loss for tools when harvesting crops.
- Durability reduction is configurable (
durability_loss
option in the settings). - Ensured proper updates to player inventory when tool durability is reduced.
-
Optimized Item Drops:
- Crop drops now properly scale based on configured multipliers per tool type (
drop_multipliers
). - Wheat harvesting now correctly drops both Wheat and Seeds in configurable amounts.
- Non-replantable crops like Melons, Pumpkins, and Cocoa Beans drop items without resetting the block.
- Crop drops now properly scale based on configured multipliers per tool type (
Bug Fixes:
- Fixed tool detection issue where the plugin did not correctly recognize certain tools for harvesting.
- Resolved incorrect crop replanting behavior for Wheat and other Ageable crops.
- Fixed a Cocoa harvesting bug where the block would not properly reset after harvesting.
- Addressed inventory update issues where tools would not correctly display durability loss immediately after harvesting.
Configuration Updates:
- New Config Options Added:
prevent_farmland_destruction
- Prevents players from trampling farmland.durability_loss
- Toggles tool durability loss when harvesting crops.xp_drop_enabled
- Enables or disables XP drops when harvesting.probabilities.<tool_type>
- Defines XP drop probabilities per tool type.multipliers.<tool_type>
- Configures XP multipliers based on tool usage.base_xp_amount
- Sets the base XP amount awarded per harvest.
Known Issues:
- None reported yet.
This update enhances overall performance, fixes key bugs, and adds new features for a smoother and more customizable experience. Be sure to update your configuration file to take advantage of the new options!
Changelog: Right-Click Harvest Plugin
v1.0.0 - Initial Release
Features:
-
Right-Click Harvesting & Replanting: Harvest crops by simply right-clicking on a fully grown crop block. After harvesting, the crop is automatically replanted.
- Supports all Ageable crops (e.g., Wheat, Carrots, Potatoes, etc.).
- Automatically resets the crop to its initial growth stage after harvesting and replanting.
-
Highly Customizable Configuration: Fully customizable crop settings in the configuration file, allowing you to easily enable or disable specific crops for harvesting and replanting.
- Customize which crops can be harvested by modifying the
crop_settings.enabled
list.
- Customize which crops can be harvested by modifying the
-
XP Drops: Experience orbs can be dropped when harvesting crops, with configurable probability and multiplier settings based on the tool used.
- Configurable XP drop probability per tool type (e.g., Hoes have specific chances to drop XP).
- Configurable XP amount, which is affected by the tool multiplier and base XP.
- Supports XP drop based on a player’s tool (e.g., if they are using a Hoe, there is a configurable chance for XP to drop).
-
Tool Durability: Option to reduce the durability of the tool when used for harvesting crops.
- Configurable in the plugin settings (
durability_loss
option).
- Configurable in the plugin settings (
Configuration:
crop_settings.enabled
: List of supported crops that can be harvested with right-click and automatically replanted.xp_drop_enabled
: Enable or disable XP drops on crop harvest.probabilities.<tool_type>
: Probability of XP drop for each tool type (e.g.,probabilities.hand
for bare hands,probabilities.diamond_hoe
for diamond hoes).multipliers.<tool_type>
: Multiplier for XP drops based on the tool used.base_xp_amount
: The base amount of XP awarded for each harvest (can be multiplied by the tool's multiplier).durability_loss
: Toggle to enable or disable tool durability loss when used for harvesting.
Bug Fixes:
- Fixed issue where the plugin would not properly check if the player was holding a valid tool for harvesting.
Known Issues:
- None reported yet.