TreeCapitator
TreeCapitator is a lightweight Minecraft Bedrock Behavior Pack that makes wood gathering faster and easier. Break a log with any vanilla axe to automatically chop connected logs and remove the tree's natural leaves, without manually breaking every block.
Features
-
One-Action Tree Chopping: Use any vanilla Minecraft axe to break a log and automatically chop the connected logs of a tree.
-
Natural Tree Detection: By default, the connected wood must have natural leaves nearby. This helps prevent the addon from triggering on simple player-built log pillars.
-
Automatic Leaf Removal: Natural leaves associated with the tree are removed after the trunk has been successfully chopped.
-
Tool Durability Support: Axe durability is calculated according to the number of logs removed, with Unbreaking enchantments taken into account. If the axe breaks before the entire tree is chopped, the process stops and the leaves are left intact.
-
Automatic Drop Gathering: By default, the drops from a chopped tree are gathered at the base of the tree. You can change this behavior to gather drops near the player or leave them at their normal drop locations.
-
Configurable Settings: Customize scanning limits, maximum tree size, leaf removal, drop behavior, and other options through the pack's configuration file.
-
Performance-Conscious Processing: Tree scanning and block removal are processed in batches to help reduce performance spikes when chopping larger trees.
How to Use
-
Install the TreeCapitator Behavior Pack and activate it in your world's Behavior Packs settings.
-
Enter your world with an axe.
-
Break a log belonging to a naturally growing tree. TreeCapitator will detect the connected logs and process the tree automatically.
-
Collect the drops gathered at the base of the tree.
Optional Sneak Behavior
You can configure TreeCapitator to stop working while sneaking. When this option is enabled, breaking a log while sneaking will only break that single block, allowing you to chop trees normally when needed.
To enable this feature, open scripts/config.js and change:
DISABLE_WHEN_SNEAKING: false
to:
DISABLE_WHEN_SNEAKING: true
Repackage the Behavior Pack after changing the setting.
Configuration
The pack includes scripts/config.js, which allows you to customize its behavior before installing or redistributing the pack.
Available settings include:
-
Tree size limits: Set the maximum number of logs that can be processed in one operation.
-
Scanning boundaries: Adjust the horizontal radius and vertical scanning limits.
-
Leaf handling: Enable or disable natural leaf removal and configure the requirement for natural leaves.
-
Drop modes: Choose between gathering drops at the tree base, gathering them near the player, or leaving them at their normal locations.
-
Sneak behavior: Enable or disable TreeCapitator while sneaking.
Compatibility & Requirements
-
Game: Minecraft Bedrock Edition 1.26.0 or a compatible version that supports the required Script API.
-
Dependency:
@minecraft/serverversion2.8.0, as declared in the pack manifest. -
Pack type: Behavior Pack only. No separate Resource Pack is required.
-
Installation: Activate the pack in the world where you want to use it.
Note: Custom wood blocks may not be recognized by the tree detection system. Compatibility depends on the block identifiers used by the game or add-on.
Enjoy faster tree chopping with TreeCapitator!