Data Packs Tool

Timber Datapack

  • Functions
  • Predicates
  • 1,170,054 views • 69 today
  • 392,113 downloads • 20 today
  • 1,072
  • 1,251
  • 691
Moggla
Level 81 : Elite System
323

Current Version v7.1.0 [​1.20.2 - 1.21.11]
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 amJanuary 3, 2025 @ 4:16 pm UTC

LOAD MORE LOGS
Curated in their collections

  Have something to say?

shroomsterium
01/07/2026 11:55 am
Level 1 : New Miner
history
I downloaded this datapack from vanillatweaks for 1.21.11, but somehow it broke..

I've also downloaded the other datapacks, like husk drops sand, and it worked..

most of vanillatweak's datapacks work just fine, but somehow not with timber..

I wonder how to fix it, can you tell me..?

edit :

I forget to tell what happened in my case..

the datapacks loaded and enabled, but, I couldn't use the /trigger TimberToggle at all..

the /function timber:help also not available., I mean, all those settings didn't show up..

thanks..
1
Moggla
01/08/2026 5:09 pm
Level 81 : Elite System
There is no 1.21.11 version on vanillatweaks. You have to download it here.
1
MechaKillerRichMC
05/25/2025 3:53 am
Level 11 : Journeyman Explorer
where is the 1.21.5 version?
1
DragonOracle1986
04/12/2025 3:17 pm
She/Her • Level 4 : Apprentice Dragon
This has been broken in 1.21.5
1
User5661857D
03/26/2025 3:49 pm
Level 1 : New Miner
I know it’s early but are there plans to update to 1.21.5? Playing MC without this data pack feels like living in the Stone Age >.<
5
Kazuocam
03/28/2025 10:01 pm
Level 1 : New Miner
true!
2
User5624929G
03/03/2025 1:21 pm
Level 1 : New Miner
I haven't figured out why, and I redownloaded from here hoping it was updated/fixed, maybe you haven't been informed, if I silk touch mushrooms, and they are selected to be chopped, and have an empty inventory, (and I'm choose to collect directly into inventory), the blocks get randomly placed in inventory, and after a while of filling up, at a certain point, extra blocks just get straight up deleted, and not fill the inventory slots, all other trees seem fine, just the fungi. It's been like this since v. 2. something. I only have datapacks installed, and I don't think anything else I have installed should effect fungi, or my inventory slots, or my silk touch axe, so I have no idea what's causing this. I don't even know where to search in the code to figure out what could be causing it. I hope this gets fixed eventually, I love the datapack none-the-less! I still use it, I just have to fill my inventory of all the blocks I plan to go chop, and drop off before 100% full. I would just prefer not needing to do that.
1
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 81 : Elite System
Vanilla tweaks don't even have the latest update of my datapack...
1

Welcome