
Advanced TreeCapitator
Advanced TreeCapitator enables fast tree felling on Paper 1.21. Sneak with an axe to chop entire trees, with configurable durability loss, world restrictions, and a reload command.
Advanced TreeCapitator 1.3.0
release26 апреля 2026 г.[1.3.0] — 2026-04-25
Fixed
-
PALE_OAK_LOGbypassedrequire-leavescheck —isOverworldLog()was missingPALE_OAK_LOGfrom its switch statement, meaning Pale Oak trees were treated the same as Nether stems (no-leaf bypass). Withrequire-leaves: true, a Pale Oak log structure built by a player would be incorrectly felled. AddedPALE_OAK_LOGto the overworld log list so it is correctly guarded. -
Fragile reference-equality trim check — The condition that decided whether leaves should be broken used
trimmedLogs == logsToBreak(Java reference equality) instead of an explicit boolean. While this happened to work correctly, it was subtle and error-prone. Replaced with a dedicatedwasTrimmedboolean flag for clarity and safety.
Added
-
TreeCapitatorEvent(Plugin API) — A new cancellable Bukkit event fired just before any tree is felled. Other plugins can now listen toTreeCapitatorEventto:- Cancel the felling via
event.setCancelled(true). - Inspect the full set of logs and leaves that will be broken.
- Grant custom rewards (economy, XP, quests) based on
event.getLogs().size().
- Cancel the felling via
-
leaf-durability-ratioconfig option (default:10) — Controls how many leaf blocks count as one durability hit whenbreak-leaves: true. Previously hardcoded to1/10, this is now fully configurable. Set to1to make every leaf cost a durability point; set higher to reduce tool wear from leaf breaking. -
MUSHROOM_STEMsupport — Added a commented-out entry inconfig.ymlforMUSHROOM_STEM, enabling huge-mushroom felling. Uncomment to activate.
Refactored (God Class split)
-
TreeFinder(new class) — Extracted all BFS log-finding and leaf-scanning logic fromTreeCapitatorTaskinto a dedicated utility class.isOverworldLog()andisLeaf()helpers moved here. -
DurabilityHandler(new class) — Extracted all durability calculation and application logic (getRemaining,calcMaxExtraBreaks,applyDamage) into a dedicated utility class. -
TreeCapitatorTaskis now a lean orchestrator: BFS → leaves → trim → event → break → durability → effects.
Advanced TreeCapitator 1.2.5
release17 апреля 2026 г.[1.2.5] — 2026-04-17
Fixed
- Nether stems, Warped stems, and Bamboo Block now work correctly with
require-leaves: true.
Improved
- Highly optimized BFS: uses
ArrayDeque, scans leaves only once, adds Manhattan distance, and usesHashSet. - Cleaner, more maintainable code.
Advanced TreeCapitator 1.2.4
release4 апреля 2026 г.[1.2.4] — 2026-04-04
Fixed
- Large trees (Jungle Giant, Dark Oak) could not be felled — When a tree exceeded
max-blocks(default: 100), the plugin aborted the entire felling operation and only the single broken log was harvested. This made giant Jungle trees (200-500 blocks) and large Dark Oaks impossible to chop efficiently. The plugin now performs a partial chop — it breaks logs up to the configuredmax-blockslimit instead of doing nothing. The remaining logs can be harvested with additional chops. - Off-by-one in max-blocks check — Changed from
>to>=so the limit is correctly enforced at exactlymax-blocks. - Big Oak trees not fully harvested — The BFS search for logs was limited to 6 directions (face-adjacent only), causing the capitator to miss logs that are only diagonally adjacent. Big Oak trees have irregular structures where some logs only touch at corners. The search is now 26-direction (3×3×3 cube) to catch all connected logs.
Advanced TreeCapitator 1.2.3
release27 марта 2026 г.[1.2.3] — 2026-03-27
Added
require-leavesoption (default:true) — Before felling, the plugin now checks that the log cluster has at least one adjacent leaf block. If none are found, the capitator does nothing. This prevents accidental activation on player-built log structures such as house walls, cabin roofs, or log-block decorations. Set tofalseto restore the old behaviour.
Fixed
- Durability did not limit felling — Tool durability was calculated and applied after all blocks were already broken. A nearly-broken axe (1 durability remaining) could silently fell a 100-log tree and would simply be destroyed at the end. The task now calculates the maximum number of extra logs the remaining durability permits before breaking any blocks, and trims the set accordingly. Unbreaking level is respected in this pre-check as well.
Advanced TreeCapitator 1.2.2
release16 марта 2026 г.[1.2.2] — 2026-03-16
Fixed
- Critical Item Swap Bug — Fixed a bug where switching items during a tree felling task (0.05s delay) could overwrite a new item in the player's hand with the old axe, potentially causing item loss. The task now tracks the specific inventory slot and verifies the tool's identity before applying durability changes.
- Leaf Durability — Added durability loss for leaf felling. Every 10 leaves broken now counts as 1 tool hit to ensure balancing when
break-leavesis enabled.
