Minecraft Data Packs / Tool

Timber Datapack

  • check_circle Functions
  • check_circle Predicates
  • 1,091,641 views, 216 today
  • 365,146 downloads, 105 today
  • 1,056
  • 1,236
  • 683
Moggla
Level 80 : Elite System
314

Current Version v7.0.0 [​1.20.2 - 1.21.4]
Other versions are on GitHub (second download button)



TimberLogo
Discord

This is a really useful addition for those who don't want to spend expensive time on gathering resources! After installing, the Timber Datapack allows you to instantly chop down a tree just by breaking one log with any axe.
By default, sneaking while breaking will not chop the tree.
Optionally, you can adjust everything as you wish.

Under the Hood Features

- Chops only trees¹
- Works with every type of log²
- Supports custom trees³
- Leaves drop normal loot
- Takes account of any enchantment
- Many options for customization


¹ Trees are defined as logs that are next to naturally generated leaves.
² Logs in the tag #minecraft:logs.
³ All kind of custom trees like from BiomesO'Plenty, The Biome Overhaul, Terrestria and Traverse.

Preview

chop treeNether tree Huge mushroom
*Enable the option "Chop Fungi"


Settings

To get descriptions and settings for this datapack use:

/function timber:help
If you don't have access to commands in your singleplayer world:
  1. Pause the game
  2. Click on Open to LAN
  3. In the options, change Allow Cheats: OFF to ON
  4. Click on Start LAN World


Every player can individually turn the datapack ON or OFF by using:

/trigger TimberToggle

help
settings1settings2


Advanced Manual

Click to reveal

About:

This Advanced Manual will help you to add or change certain elements of this datapack which require editing of your side.

Important:

In order to add or change the following you have to put the content of the datapack (Timber.zip) in a folder called "Timber".
There are directories to different type of files. Open them with any kind of text editor. Below the directories is the code which you have to insert or replace (it's stated which one of these).


Debugging:

If you have difficulties or errors in trying to change the timber datapack, then please enable the output log (Minecraft Launcher → Settings → General → Enable "Open output log when Minecraft: Java Edition starts").


Add modded axes:
(for example the emeraldaxe from supertools)

(Small note: Your modded axe will break after or below zero durability. This shouldn't be a problem. It's not really worth to implement a fix, because you're only able to chop a few more logs)

Get the name of your modded axe:
Go ingame and type "/scoreboard objectives add x minecraft.used:" in chat. Now search for your modded axe there.
In my example it's called "supertools.emeraldaxe".

Give your modded axe a nickname:
In my case a gave him the name "timber_emera_axe".
This is technically the name of your axe used by the datapack. You can name it however you like just look that you write it everywhere the same and that you follow these points:
  • Always use the prefix "timber_"
  • The max. length of the nickname is "timber_123456789"
  • Don't use names twice for other axes!



Timber/data/timber/functions/init.mcfunctionsAdd this code at the place where similar commands are
scoreboard objectives add timber_emera_axe minecraft.used:supertools.emeraldaxe



Timber/data/timber/functions/used_axe.mcfunctionsAdd this code at the place where similar commands are
execute unless score @s timber_disabled matches 1.. if score @s timber_emera_axe matches 1.. run function timber:sneaking
Also add this code at the place where similar commands are
scoreboard players set @s timber_emera_axe 0



Timber/data/timber/predicates/used_axe.jsonThe content of the upper part of this file should look like this.
{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:entity_scores",
      "entity": "this",
      "scores": {
        "timber_emera_axe": {
          "min": 1,
          "max": 2147483647
        }
      }
    },
    {
      "condition": "minecraft:entity_scores",
      "entity": "this",
      "scores": {
        "timber_w_axe": {
          "min": 1,
          "max": 2147483647
        }
      }
    },
    .
    .
    .



Timber/data/timber/tags/items/axes.jsonThe content should look like this. Don't forget to add the "," after the netherite_axe and to change the ":" between supertools and emeraldaxe!
{
  "values":[
    "minecraft:wooden_axe",
    "minecraft:stone_axe",
    "minecraft:iron_axe",
    "minecraft:golden_axe",
    "minecraft:diamond_axe",
    "minecraft:netherite_axe",
    "supertools:emeraldaxe"
  ]
}



Installation instructions

- Download the Datapack
- Start Minecraft (Java Edition)
- Click on "Singleplayer"
- Select your world in which to install this Datapack (Don't click on play!)
- Click on "Edit"
- Click on "Open World Folder"
- Place the .zip file inside the datapacks folder (Don't unzip it!)
- Join/Rejoin the world or use /reload
- Finished! Enjoy!


Note: It does not work in creative mode!

Server Compatibility

Status
Server softwareNotes
Vanilla / Realm
Forge
Fabric
🆗
CraftBukkit-Huge mushrooms don't always drop loot
-Whole stack of saplings that got auto-planted get deleted rather than only one
🆗
Spigot-Huge mushrooms don't always drop loot
-Whole stack of saplings that got auto-planted get deleted rather than only one
🆗
Paper-Huge mushrooms don't always drop loot
-Whole stack of saplings that got auto-planted get deleted rather than only one

As of October 4th, 2020

Other Minecraft servers, unlike Vanilla or Realm, often do not fully support Datapacks.


Legal Terms

Click here to reveal
What you are allowed to do:

- Change this datapack for your own use
- Look at my code to learn how I do things
- Use the same design as my settings menu

What you are not allowed to do:

- Upload this datapack to another website (Not even a changed versions)
- Impersonate the creator
CreditInspired by Timber Mod and ChopTree Plugin, Map of the First Picture is from DarthEnigma and rendered with Chunky, Logo created with ewanhowell5195 Blockbench plugin
CompatibilityMinecraft 1.15
toMinecraft 1.21
Tags

29 Update Logs

Update V7.0.0 : by Moggla 01/03/2025 11:16:53 amJan 3rd

LOAD MORE LOGS

Create an account or sign in to comment.

sgtAngelGR
02/05/2025 4:19 pm
Level 1 : New Explorer
does not seem to work on nether trees
1
cakedouble0
01/05/2025 6:50 am
Level 1 : New Miner
i also downloaded the datapack from vanilla tweaks, it doesn't say anything about destroy roots in trigger:settings, i want it to destroy mangrove roots when i chop those down
1
Moggla
01/10/2025 5:38 pm
Level 80 : Elite System
Vanilla tweaks don't even have the latest update of my datapack...
1
cakedouble0
01/05/2025 6:43 am
Level 1 : New Miner
the link to download the datapack doesn't work, it says it cannot find page or when i go to github, i cannot see the download file for the datapack
1
Moggla
01/10/2025 5:37 pm
Level 80 : Elite System
On GitHub, it's the zip file under Assets. But now I've uploaded it onto this place.
1
StepBri
01/02/2025 1:19 pm
Level 1 : New Miner
It says "Unknown scoreboard objective 'TimberToggle' how do I fix this
1
Moggla
12/29/2024 4:19 pm
Level 80 : Elite System
Hello everyone!

I've been gone for long, but finally decided to come back and update my datapack! A pre-release I've made is on my GitHub (second download button)! There are still some small bugs, but I'll make sure to fix them when I have time again! :D
1
Draco98
11/27/2023 5:44 pm
Level 15 : Journeyman Miner
Love this data pack! Quality of life addition!!! 11/10
2
Wolle17
10/08/2023 11:54 am
Level 1 : New Miner
To use the Datapack in 1.20.02 do this:

Edit the Datapack:

Go to:
  data/timber/predicates/block/leaf.json
and quote true of the hanging state.
From:
  "hanging": true to "hanging": "true"


This is a non intentional change in 1.20.02 but from now on the block state must be a quoted string.
6
Mgunh1
12/06/2023 9:50 am
Level 1 : New Miner
I feel like this is missing one or more crucial steps. I tried this and now Minecraft wont even recognise it as a valid mod anymore as it doesn't show up on the data pack list.

Do I just re-zip it (which doesn't appear to work)? Do I need an another program to fix it? I'm at a loss right now.
1

Welcome