Skip to content

🌾 Right-Click Harvest & Auto-Replanting

Agrarian Reform includes Instant Gratification Quality-of-Life (QoL) harvesting. Players can harvest mature crops with a single right-click without destroying the block or manually replanting seeds, fortified by a strict 6-Dimensional Interaction Guard.


📊 Feature Infobox

PropertyValue
Handler Classnet.instantgratification.agrarianreform.AgrarianReformFabric
Event TargetUseBlockCallback.EVENT
Trigger ActionRight-click (Use) on mature crop block with Main Hand
EffectSpawns crop drops, resets crop to Age 0, plays harvest sound
Crouch BypassSneak + Right Click (player.isSecondaryUseActive()) bypasses harvest to allow block placement
Debounce GuardMain-Hand only (hand != InteractionHand.MAIN_HAND fast-fails with PASS)
GameRule Toggleagrarian_reform:right_click_harvest (Default: true)

⚙️ 6-Dimensional Interaction Guard Workflow

                        PLAYER RIGHT-CLICKS CROP BLOCK


                   1. Is Hand MAIN_HAND? (Off-Hand Debounce)
                                  ┌────┴────┐
                               YES│         │NO
                                  ▼         ▼
                   2. Is Player Sneaking? (Secondary Use Bypass)
                   (player.isSecondaryUseActive())
                                  ┌────┴────┐
                                NO│         │YES
                                  ▼         ▼
                   3. Is right_click_harvest GameRule true?
                                  ┌────┴────┐
                               YES│         │NO
                                  ▼         ▼
                   4. Is crop at maximum age (isMaxAge)?
                                  ┌────┴────┐
                               YES│         │NO
                                  ▼         ▼
                   5. Sided Execution & Item Drops
                   - Query loot table on server side (!level.isClientSide)
                   - Spawn drops into world
                   - Reset block state to Age 0
                   - Play harvest & crop rustle sound
                   - Return InteractionResult.SUCCESS

🌾 Supported Crops for Right-Click Harvest

Right-click harvesting automatically supports all standard and modded agricultural crops:

  • Wheat (minecraft:wheat)
  • Carrots (minecraft:carrots)
  • Potatoes (minecraft:potatoes)
  • Beetroots (minecraft:beetroots)
  • Modded Agriculture: Any crop extending CropBlock or registered with #c:crops.

⚙️ Server Command Toggle

Disable right-click harvesting across your world:

bash
/gamerule agrarian_reform:right_click_harvest false

See also: Seed Sowing & Grass Cultivation, Plant Registry & Universal Crops, and Universal Bone Meal.

Official documentation & web portal for Dasik Igaijinn mods.