Cristichi's Tree Capitator
Tested on 1.21!
The latest build has been tested and works for 1.21.*, 1.20.*, 1.19.*, 1.18.*, 1.17.*, 1.16.*, 1.15.*, 1.14.* and 1.13.*. I recommend using the latest build always in servers running on those Minecraft versions. I'm also still around so please feel free to leave here any issues you may encounter or your suggestions if you want to, I'll read them.
Features
Please note that only the latest build supports ALL of the following features.
- Let users destroy entire trees by breaking only 1 log. Even the biggest tree will fall!
- Works on nether trees (If server is +1.16).
- Auto-update. You will get a notification if a new update is out and you don't need to come back here to download the plugin again when new features come out.
- It also destroys all leaves around.
- Auto-replant. Replanted saplings can also be automatically protected so they cannot be broken until they grow a tree.
- Switch on/off if an axe is required and/or damaged.
- VIP mode. Use it to restrict access to the benefits of this plugin, for premium users for example.
- Each player can toggle on/off the plugin for themselves. You can also configure if you want a message to remind players of their current setting when they log in.
- Players are not able to break logs in protected areas (by WorldGuard or other protection plugins using WorldGuard as a dependency).
- Axes are damaged accordingly.
- Switch on/off if axes should be prevented from being broken. So that you can repair that nice axe with Mending or an anvil and never worry about it being broken. (only works when breaking logs with it, breaking anything else will destroy the axe anyway)
- Switch on/off if tree leaves should be ignored by the plugin. Enabling it will make the plugin take down only connected logs, reducing the lag and balancing a little bit.
- Crouch mode. Use true in this configuration so that crouching players not trigger this plugin. Use inverted to make standing players not trigger this plugin, or false to make crouching not change how this plugin works.
- Customize what are trees! Configure any block to be treated as tree logs or as tree leaves for this plugin. Scroll down to see more specific steps on this page.
- Ask for new features by DM or by commenting here! I'll try to consider and answer every suggestion.
Commands/Configuration
- /tc help: Lists all commands.
- /tc toggle: Toggles the plugin for you. Just in case you made your home using lots of logs.
- /tc update: Checks for new updates, and updates if able.
- /tc reload: Reload config.yml changes.
- /tc setLimit <number>: Sets the limit of blocks this plugin can destroy at once. (-1 for unbounded)
- /tc setReplant <true/false>: Sets if trees should be replanted. True by default.
- /tc setInvincibleReplant <true/false>: Sets if replanted saplings should be unbreakable by survival players. False by default.
- /tc setAxeNeeded <true/false>: Sets if an axe is required for the plugin to work. True by default.
- /tc setDamageAxe <true/false>: Sets if the axe used is damage (only takes place if an axe is needed). True by default.
- /tc setBreakAxe <true/false>: Sets if the axe used can be broken (only takes place if an axe is needed and damaged). False by default.
- /tc setVipMode <true/false>: Sets if vip mode is on. False by default.
- /tc setNetherTrees <true/false>: Sets if the plugin works on the new nether "trees". False by default.
- /tc setStartActivated <true/false>: Sets if this plugin is activated for players when they enter the server. If false, players will need to use /tc toggle to activate it for themselves. True by default.
- /tc setJoinMsg <true/false>: Enables or disables the join message that remind players about /tc toggle. True by default.
- /tc setIgnoreLeaves <true/false>: Makes the plugin ignore or not the leaves aroung logs. False by default.
- /tc setCrouchPrevention <true/false/inverted>: Defines if crouching allows players to break logs individually. If set to inverted, players must crouch to break multiple logs with this plugin. False by default.
You may also use /treecap or /treecapitator as valid aliases for the /tc command.
Permission nodes
- cristreecapitator.user: Always required to take down trees fast.
- cristreecapitator.admin: Required to change options by commands.
- cristreecapitator.vip: Required to take down trees fast when Vip Mode is enabled.
How to Install
- Place your downloaded .jar file into YourServerDirectory/plugins/.
- Start or reload server.
- Then you may configure the plugin just the way you want, either using commands OR editing the config file and then typing /tc reload in the in-game chat (with cristreecapitator.admin permission/OP) or in the server console.
How to use VIP mode
VIP Mode enables an easy switch for the plugin. If VIP Mode is enabled regular users won't be able to use this plugin by default because they will also need an additional permission.
- Enable vip mode (/tc setVipMode true).
- Give 'cristreecapitator.vip' permission node to VIP players.
- It's already done! VIP players will be the only ones allowed to cut down trees faster! Don't worry, average players can still get wood, but the vanilla way.
How to add blocks as logs or leaves
You can configure other blocks to be detected as if they were logs or leaves, like the stripped logs or blocks from mods, or any block you want.
- Make sure you are using v6.4.0 or higher of this plugin.
- Check the name of the blocks in this link https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html.
- Go to the folder YourServerDirectory/plugins/CrisTreeCapitator where the configuration file is and open extra_logs.json or extra_leaves.json, and edit the files to include the blocks you want (as named in the previously mentioned link). Be careful to follow the format.
- Reload the server OR type /tc reload to apply the changes.
Keep it always up to date!
During startup you will receive a notification in the chat and the server console if the plugin needs to be updated. With a simple command you will be able to check new updates and update the plugin in-game.
I always recommend to keep the plugin up to date to make sure that you are benefiting from new features, general improvements and any bug fixes.
Compatibility with older versions.
If your server is running a Minecraft version older than 1.13, please click here to download v3.0.1 instead. It won't have all the advantages and performance of the latest version so please consider updating your server to at least Minecraft 1.13.
Need help?
Please feel free to contact me through DM or by commenting in this page. I do not have much free time to answer, but I will be sure to answer you as soon as possible. I will be happy to help on any issues that you are having, and consider every feature request that would make the plugin better for your server.
Future plans
My intention for the future of the plugin is to keep providing updates for new Minecraft versions, especially if there are any significant changes to the game like new trees or new features that would help this plugin's implementation. Additionally, I will provide support for any issues or bugs encountered by players, and I will consider any new features suggested as well. Please, feel free to let me know your feedback, good or bad.
Thank you for reading, and happy minecrafting!
In reply to Cristichi:
Thanks, didn't realise that was a command. I ended up changing the max blocks to 1 in config, then doing /reload (which is super annoying). But /tc toggle sounds good enough for me :)
What about sneak for enable / disable treecapitator, do you think you could make that work?
In reply to theroflcopterguy:
Yes I could, but then everyone should remember it all the time, and I don't feel like as a user I would like to have it in mind all the time around my wooden house.
In reply to Cristichi:
I'm no good with mods or plugins, but you could have a setting in the config which was default false, so that only people who wanted it could enable it? :)
Just a thought, I've seen some other tree-capitator plugins do it (all of which are outdated, so it doesnt matter)
In reply to theroflcopterguy:
I believe that if a server got this plugin is because they want to allow players to use it, so enabling it by default seems like the logical option to me. Anyway, maybe what I could do is send a message with the information about /tc toggle when they connect to the server, just like other plugins do.
In reply to Cristichi:
I only have a tiny server with me + 4 people playing, and all of them are playing on old macbooks, where typing is a hassle. Easiest for them (and for me) would be to sneak for treecapitate and standing for 1 log, or vice versa, but /tc toggle works alright. Thanks anyway :)
Hello there! Can you update it to 1.15?
In reply to Forge_User_35215444:
It seems to be working on 1.15, but I'm still doing some tests. I will update the plugin or the page info when I'm finished ü
In reply to Cristichi:
When I tested it on my server, It broke all wood log in my house
In reply to Forge_User_35215444:
Make sure to use /tc toggle when you don't want it to break everything when you break 1 log
Great plugin and saves a lot of time on gathering wood to build a house or bigger structures. I am new to owning a server and Cristichi helped me a lot with making this plugin work. Great plugin and great creator of the plugin. 10/10 for customer support.
Houses built of wood are also destroyed by axes, please add a distinction in the materials that can be cut down by this plugin
In reply to Cursed_Sumrak:
As I already said in other comments, it is impossible to distinguish a tree's log from a placed-by-player log. For the game they are both exactly the same.
Hi!, latest version doesn't work, as commented below.
I tried download previous version. It works but there is a problem with cutting itself:
When some trees are near each other (there is no empty block between leaves) it can cut all the wood when we cut only one tree :)
In reply to Forge_User_23128044:
As commented below, I already knew why it was happening. It is already fixed, we just have to wait for Bukkit to publish the last version I already updated.
Sorry for making you wait :c
I think the latest build is messed up. When I was trying to run with it in the directory it was giving an error that the plugin.yml was not found. Trying the previous version worked properly.
In reply to lostinbrave:
It isn't working for me either. Server displays:
[00:17:30] [Server thread/ERROR]: Could not load 'plugins/CrisTreeCapitator.jar' in folder 'plugins'
Running Paper-175.
In reply to lostinbrave:
Sorry, my very bad xD I think I didn't compile it properly, it should be fixed. Thanks for your notice ♥
is there an option for using this plugin in singleplayer?
In reply to frencholives:
You can either create a server for yourself (I do that so much!) if you have a decent amount of RAM in your computer or you can look for a way to play craftbukkit plugins as mods (which I don't know if it's possible). Good luck on either solutions!
Awesome plugin! BUT there's a bit of a problem.
It doesn't only cut down trees, but also logs that were placed after. I almost cut down my whole castle lol.
Is there any way to let the plugin detect if a log is generated by a sapling or if it was placed by hand?
Another thing: is there any way to disable the plugin for everyone (with a command for example) instead of the VIP way?