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

Adds the focused RightClickHarvest slice from #76, stacked on #87. The opt-in effect supports wheat, potatoes, carrots, beetroot and nether wart. Main-hand mature-crop admission and deferred execution recheck interaction permission, player session, slot/tool/seed, crop state, range, loaded region and perk eligibility. Shared AutoPlant restrictions apply; the guarded native break retains protection, tool wear, normal drops and Farmer bonuses without duplicate AutoPlant or recursive automation.

The parent ledger confirms a personal usage reservation before one exact inventory seed is deducted. A completed native break and age-zero replant is one successful use. Proven-unused work releases its reservation; false/throwing native calls and changed replacement/reload/replant outcomes remain uncertain, keep the seed and charge spent, and never automatically replay. Existing perk defaults remain unchanged. PrecisionMode, queues, banking and statistics remain separate slices.

Validation: 58 harvest cases include all original five-crop/15 admission controls plus protection, stale contexts, duplicates, native uncertainty, reload and Farmer integration. A clean package passed 479 tests with zero failures/errors/skips, retaining all 421 parent test identities. Source and execution context stayed unchanged. All 30 suites selected the expected 75 dependency JARs; ZIP integrity, unique entries, 40 resources, filtered descriptor, Java 21 classes and test/provided-library exclusions passed. JAR SHA-256: e20463dd5140ab56b5680d5383883b85559c374a91f57ebf0e3f440ade78e11e.

Fresh independent read-only review of the complete frozen six-file P5 change returned No findings. Exact source/argument privacy checks and native generated commit-metadata verification precede branch publication.

Remains draft for normal dependency delivery, compatibility coordination, current-head hosted feedback and separately authorized native/older-server acceptance. Validation used isolated candidate dependencies, not released artifacts. Mocked-world unit tests are not native protection-plugin acceptance. MCPerks does not declare Folia support. Merge order is #78, #80, #86, #87, then this slice. No merge, release or deployment is included.

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