Description
Tree Feller and Replant
Sneak and break the bottom log with an axe: the whole tree comes down, the logs land in your inventory, a sapling goes back on the stump, and the axe pays the durability. Achievements stay on: stable Script API only, no experiments, no custom items. Made for Realms, dedicated servers and local worlds; tested on the dedicated server, not yet on a real Realm.
What it does
- Felling needs all three: sneaking, an axe, and the bottom log. Walk up to a tree, sneak, chop the base, done. Not sneaking? Logs break one at a time as usual.
- Only trees. The logs must have leaves touching them, so log cabins, fences and pillars are never felled, and breaking a log in the middle of a wall does nothing special.
- The axe pays one durability per extra log, Unbreaking included. It stops at the last point of durability instead of breaking the axe.
- A sapling of the right kind goes back on the stump when the ground allows it: oak, spruce, birch, jungle, acacia, dark oak, cherry, pale oak, mangrove (propagule), and crimson or warped fungus on nylium. 2x2 trees (dark oak, big spruce and jungle) come down as one.
- Leaves decay on their own as in vanilla, or turn on
breakLeavesto clear the canopy with its normal drops. /treefellerturns it on or off for yourself. Creative mode is left alone by default.- Operators change any setting in game with
/treefellerconfig(numbers, booleans as 1 or 0) or/treefellerconfigtext(words), saved in the world; the settings also sit at the top ofscripts/main.jswith a comment for each:requireSneak,requireAxe,bottomLogOnly,requireLeaves,maxLogs,logsToInventory,durabilityPerLog,keepAxeAlive,replant,replantNeedsSapling,breakLeaves,workInCreative,showMessage,onByDefault.
Compared with the big "capitator" packs this one does trees only, replants, and honours the axe: no vein mining, no free wood, no custom tools.
Tested
On the official Bedrock Dedicated Server:
- 33 checks with simulated players in a Beta-APIs test world (the add-on itself uses no beta API): an oak felled from the bottom log while sneaking with a diamond axe, logs in the inventory, the sapling on the stump, the axe paying one durability per log; no felling without sneaking, with a pickaxe, on a leafless pillar, from a middle log, or in creative; a 2x2 dark oak (24 logs) felled through diagonal links; felling stopping with 1 durability left and the axe breaking when that is turned off; Unbreaking; the /treefeller toggle; birch, crimson (fungus on nylium) and mangrove (propagule on mud); no sapling on stone; and the maxLogs, breakLeaves, replantNeedsSapling, logsToInventory and requireSneak settings changed in game.
- 48 checks with real network clients in a world with no experiments and cheats off (shared with the other two add-ons): the commands, operator-only checks, settings in game and from the console, and settings surviving a restart and /reload.
- 16 checks with all five of these add-ons in one world.
Not tested: a real phone, console or PC client (simulated players chopped the trees). Natural world-generated trees were not used; every tree in the tests was built by the test script with vanilla logs and leaves.
Install: open the .mcaddon, then add the behaviour pack to your world, or put it in your server's behavior_packs folder and list it in world_behavior_packs.json. Needs Minecraft 1.26.10 or newer; it has only been run on 1.26.61. Licence: MIT.
Not affiliated with Mojang or Microsoft.
More free tools: actuallyop.com




