promotional bannermobile promotional banner

Auto Replanter

A Minecraft Fabric mod that automatically replants crops when harvested
Back to Files

auto-replanter-1.1.0.jar

File nameauto-replanter-1.1.0.jar
Uploader
Jimbob7242Jimbob7242
Uploaded
Aug 8, 2025
Downloads
1
Size
175.5 KB
Mod Loaders
Fabric
File ID
6864115
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:auto-replanter-1323254:6864115"

Learn more about Curse Maven

What's new

Changelog

All notable changes to this project will be documented in this file.

[1.1.0] - 2025-08-08

Added

  • Sneak Mode Control: New sneakMode configuration option that controls when auto-replanting occurs based on player sneak state
    • "ALWAYS" (default): Auto-replanting works regardless of sneak state - maintains backward compatibility
    • "ONLY_SNEAKING": Auto-replanting only works while the player is sneaking - provides precise control over when crops are replanted
    • "ONLY_STANDING": Auto-replanting only works while the player is NOT sneaking - allows disabling auto-replanting by holding sneak
  • Invalid sneak mode values automatically fall back to "ALWAYS" behavior for stability

Benefits

  • Precision Farming: Use "ONLY_SNEAKING" to prevent accidental replanting when walking through farms
  • Selective Harvesting: Use "ONLY_STANDING" to easily disable auto-replanting when relocating crops or harvesting without replanting
  • Backward Compatibility: Existing configurations continue to work with "ALWAYS" as the default behavior

Technical Details

  • Sneak state is checked during the PlayerBlockBreakEvents.BEFORE event
  • Configuration validation ensures only valid sneak mode strings are accepted
  • No performance impact - sneak checking is lightweight and only occurs during crop breaking

[1.0.0] - Previous Release

Added

  • Initial release with automatic crop replanting
  • Dual tool validation system (tag-based and item-specific)
  • Configurable tool requirements and damage
  • Support for modded crops extending CropBlock
  • Comprehensive configuration system

This mod has no additional files