A Minecraft data pack that fells the entire tree when you chop a single log.
- Download the latest release.
- Drop the zip into your world's
datapacksfolder. - That's it! Enjoy!
Press G to open settings, or run /trigger TreeCapitator.
From the main dialog you can toggle:
- Activation — when felling triggers (standing, sneaking, or both). Per-player.
- Update Durability — whether felled logs cost axe durability.
- Break Leaves — whether attached leaves are broken too.
- Fall Animation — visual log-tipping effect.
- Axe Settings — per-axe toggle and per-tree restrictions (see below).
- Lock Settings — freeze settings server-wide. OPs unlock with
/function tc:unlock.
For each axe you can enable/disable it and choose which tree types it can fell.
When locked, only the per-player activation toggle can be changed. Everything else is read-only until an OP runs /function tc:unlock.
Other data packs can extend TreeCapitator by calling its register functions - no edits to TreeCapitator needed.
function tc:axe/register {score: "my_axe", namespace: "mymod", name: "My Axe", max_damage: 500}That's it. Use-detection picks it up automatically; no predicate or tag edits required.
function tc:tree/register {default_enabled: 1, name: "Mahogany", block: mahogany_log, namespace: "mymod", animation_block: mahogany_wood, leaves: mahogany_leaves, diagonal_up: 1, diagonal_side: 1, stem: 0, nether: 0, max_branch: 0}For your custom log/leaf blocks to be detected during felling, also extend TreeCapitator's block tags from your addon pack — Minecraft merges tags across packs:
data/tc/tags/block/logs.json— your log blocksdata/tc/tags/block/leaves.json— your leaf blocksdata/tc/tags/block/nether_logs.json— for nether-style logsdata/tc/tags/block/nether_leaves.json— for nether-style leaves
- Clone this repo and open a terminal in it.
npm ito install dependencies.- Edit
watch-changes.js— setdatapacksFolderto your world'sdatapacksfolder. npm start— syncs files live as you edit.


