
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.
49
0
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.
Advanced TreeCapitator 1.2.2
release11 марта 2026 г.fixed bug
Advanced TreeCapitator 1.2.1
release10 марта 2026 г.Changelog — Advanced TreeCapitator
All notable changes to this project are documented here. Format follows Keep a Changelog.
[1.2.1] — 2025-03-10
Fixed
- Plugin was completely non-functional. The BFS task read
block.getType()one tick after the block-break event fired — at that point the block is alreadyAIR, so the search found nothing and no extra logs were cut. The blockMaterialis now captured inside the event handler (while the block still exists) and passed to the task. - Tool durability changes were silently discarded because the modified
ItemStackwas never written back to the player's hand. AddedsetItemInMainHand(tool)after updating the item meta. Enchantment.UNBREAKINGresolved viaEnchantment.getByKey(NamespacedKey)with atry-catchfallback, fixing compatibility across all Paper 1.21.x patch builds.- Leaf blocks adjacent to a log in a cardinal direction were skipped during the 26-dir
leaf scan because the log-BFS
visitedset had already claimed them. Leaf collection now deduplicates with its ownLinkedHashSet, independent of the log BFS. - Event priority reverted to
NORMAL(was incorrectlyHIGH) so protection-plugin cancellations atNORMALpriority are still respected.
Advanced TreeCapitator 1.2.0
release10 марта 2026 г.Changelog — Advanced TreeCapitator
All notable changes to this project will be documented in this file.
[1.2.0] — 2025-03-10
Added
- Per-player toggle (
/atc toggle) — each player can enable or disable tree felling independently without affecting others - Tab completion for the
/atccommand README.mdwith full installation guide, permissions table, and usage notesCHANGELOG.md(this file)
Fixed
@EventHandlerwas missingignoreCancelled = trueandpriority = EventPriority.HIGH— now correctly respects cancellation from other plugins- Leaf detection upgraded to 26-direction (3×3×3) scan when
break-leaves: true— diagonal leaves on Dark Oak and Jungle trees are now always caught - When a tree exceeded
max-blocks,breakCountwas reset to1but damage was still calculated — now the task returns early with no extra block breaks or damage when the limit is hit - Tool durability now uses
extraBreaks + 1(including the origin block) for an accurate damage total
Changed
- In-game messages translated to English for Modrinth release
- Logger startup message now includes the plugin version
onDisable()clears bothcooldownsanddisabledPlayers- Config comments rewritten in English with explicit Fortune/Silk Touch notes
maven-compiler-pluginbumped to3.13.0- Version:
1.1.0→1.2.0
[1.1.0]
Fixed (internal, per [FIX #x] comments)
[FIX #1]enabledflag is now checked at the top of the event handler[FIX #2]/atc reloadcommand handler registered correctly[FIX #3]Permission checkadvancedtreecapitator.useapplied[FIX #4]break-leavesnow actually breaks leaves[FIX #5]Particle effect now renders correctly[FIX #6]Periodic cooldown map cleanup to prevent memory leak[FIX #8]Cooldown is configurable viacooldown-msinstead of being hardcoded[FIX #9]Unbreaking enchantment respected; Pale Oak, Nether stems, and Bamboo added to default config
[1.0.0]
- Initial release
Advanced TreeCapitator 1.1.0
release9 марта 2026 г.Changelog
All notable changes to Advanced TreeCapitator will be documented in this file.
[1.1.0] - 2026-03-10
Fixed
enabledflag was never checked — the plugin would still function even whenenabled: falsewas set inconfig.yml. A guard check is now placed at the top ofonBlockBreak()./atc reloadcommand had no handler — the command was declared inplugin.ymlbut the plugin never implementedCommandExecutor, causing the server to return "Unknown command". The plugin now properly implementsonCommand()and handles/atc reload.advancedtreecapitator.usepermission was never enforced — any player could use the feature regardless of their permissions. A permission check is now performed before processing each block break.- Leaf breaking did nothing —
break-leaves: truein config had no effect because the BFS loop collected leaf blocks into a dead branch with no code. Leaves are now properly collected and broken. - Particle effect was commented out — the particle block in
TreeCapitatorTaskwas entirely commented out, soparticle-effect: truenever produced any visual feedback. Particles now spawn correctly using theParticle.BLOCKAPI. breakCountdid not include the initial block — durability loss was calculated one block short because the starting block (broken by the event itself) was excluded frombreakCount. The counter now starts at1to account for it.
Added
- Configurable cooldown — a new
cooldown-msoption inconfig.yml(default:200) replaces the previously hardcoded 100 ms cooldown, giving server admins full control. - Unbreaking enchantment support — axe durability loss now respects the Unbreaking enchantment level using Minecraft's standard probability formula (
1 / (level + 1)chance per hit). - Automatic cooldown map cleanup — a repeating task runs every 10 minutes to purge stale entries from the cooldowns
ConcurrentHashMap, preventing a memory leak on long-running servers. - Additional log types in default config:
PALE_OAK_LOG(Minecraft 1.21.4+)CRIMSON_STEMandWARPED_STEM(Nether wood)BAMBOO_BLOCK(Minecraft 1.20+)
[1.0.0] - Initial Release
- BFS-based tree felling on log break.
- Configurable axe requirement, sneak requirement, world whitelist/blacklist.
- Durability loss on axes with a configurable multiplier.
- Sound and particle effect toggles.
- Per-player cooldown to prevent spam.
Совместимость
Создатели
Детали
Лицензия:Apache-2.0
Опубликован:1 неделю назад
Обновлён:3 дня назад
