Minecraft Data Packs / Tool

Timber Datapack

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 1,014,587 views, 357 today
  • 336,683 downloads, 141 today
  • 1,018
  • 1,195
  • 677
Moggla's Avatar Moggla
Level 80 : Elite Engineer
312

Current Version v6.1.6 [​1.20] Other versions are at the bottom of this submission



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

chopNether 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.


Other Versions

Ad-free, older and snapshot (work in progress) Versions

. Download .


Timber v6.x.xMinecraft 1.20
Timber v5.x.xMinecraft 1.19
Timber v4.x.xMinecraft 1.18.2
Timber v3.x.xMinecraft 1.17 – 1.18
Timber v2.x.xMinecraft 1.16
Timber v1.x.xMinecraft 1.15

x = any number


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



VT

Certified Datapack
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.20
Tags

28 Update Logs

Update v6.1.6 : by Moggla 07/25/2023 2:39:35 pmJul 25th, 2023

Updated to 1.20

Added:
You can now suppress warning messages with: /tag @s add noTimberWarning
LOAD MORE LOGS

Create an account or sign in to comment.

1
11/27/2023 5:44 pm
Level 15 : Journeyman Miner
Draco98
Draco98's Avatar
Love this data pack! Quality of life addition!!! 11/10
6
10/08/2023 11:54 am
Level 1 : New Miner
Wolle17
Wolle17's Avatar
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.
1
12/06/2023 9:50 am
Level 1 : New Miner
Mgunh1
Mgunh1's Avatar
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
10/18/2023 9:54 am
Level 1 : New Miner
Stranger001Danger
Stranger001Danger's Avatar
I did that but it didn't work, so could you elaborate a bit more how it works.
1
10/22/2023 11:23 pm
Level 1 : New Miner
User4867032G
User4867032G's Avatar
So, what I did that just solved my issue was open the json file, save a new copy with the edit, delete the old one, and move the new one to the same file. I relogged and my timber pack is working perfect now
1
10/14/2023 5:58 am
Level 1 : New Miner
User4814695G
User4814695G's Avatar
i cant save the file after i change it
1
10/05/2023 1:50 am
Level 1 : New Miner
thedeadone
thedeadone's Avatar
if this is the same timber data pack thats on vanilla tweaks its working im using it right now but as for the nether it dose not work in there or on mushrooms like it show here and never has in them spots for as long as i have used it
1
10/07/2023 1:31 pm
Level 2 : Apprentice Miner
DragonOracle1986
DragonOracle1986's Avatar
this is and inst the same datapack as on vanilla tweaks as that one still has a bug related to the mangrove trees where it doesn't cut the roots and the Propagule (aka Mangrove Saplings) are deleted rather then dropping on your copping the tree down.
2
09/25/2023 5:00 pm
Level 1 : New Miner
TheLastBlonde_
TheLastBlonde_'s Avatar
Hey, I really love this pack but I have one issue that's caused me some frustration. I noticed that it says that it will only destroy logs next to "naturally generated leaves but I think there may be a bug because I have a big build made of all logs and I used a couple leaves as decoration which leads me to believe that it thinks of my build as a tree because of the leaves( I have "destroy player block" off and its only like 10 leaves and 100s of logs. if you could fix this that would be amazing. One other thing, I have the silent blocks option on but every few trees I get a really loud noise which is a bit deafening to me at least.
3
09/23/2023 3:32 pm
Level 2 : Apprentice Miner
DragonOracle1986
DragonOracle1986's Avatar
it seems that as of 1.20.2 timber isn't working
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome