Skip to content

Add protected right-click harvesting with durable usage charges - #88

Draft
BenCodez wants to merge 1 commit into
split/mcperks-p4-veinfrom
split/mcperks-p5-harvest
Draft

BenCodez wants to merge 1 commit into
split/mcperks-p4-veinfrom
split/mcperks-p5-harvest

Conversation

@BenCodez

@BenCodez BenCodez commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Opt-in RightClickHarvest breaks and replants mature wheat, potatoes, carrots, beetroot and nether wart using one inventory seed. It rechecks permission, session, tool, seed, range and crop state before execution. The native break preserves protection, tool wear, normal drops and Farmer bonuses without recursive automation.

The inherited personal usage ledger confirms a reservation before seed deduction. Proved-unused work releases its reservation. Uncertain break or replant outcomes keep the seed and charge spent and never replay automatically. Existing perk defaults remain unchanged.

This slice of #76 is stacked on #87 after #78, #80 and #86. Local candidate validation passed 58 harvest cases and a clean package with 479 tests and zero failures, errors or skips. Those tests use mocked world boundaries. Normal dependency delivery, hosted Maven, native protection integration and older-server acceptance remain unverified. MCPerks does not declare Folia support.

Created with AI assistance.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3ef67e86-eda5-41db-aa4d-3cafcbfcf97a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant