Cristichi's Tree Capitator
Updated to 1.19.3
The latest build has been tested and works for 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 leave your suggestions here if you want to, I'll surely read them.
Thank you for the 150k downloads!
I do not have much time for working on new features but expect to see new updates with very useful things!
Features
Please note that only the latest build supports ALL of the following features. The latest build works for 1.19.*, 1.18.*, 1.17.*, 1.16.*, 1.15.*, 1.14.* and 1.13.*.
- 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 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 himself. Choose if you want a message to remind players when they log in.
- Players are not able to break trees in protected areas (by WorldGuard and most other protection plugins), even if they try to break a log block that is outside in order to break log blocks inside the protected area.
- Axes are damaged accordingly.
- Switch on/off if axes should be prevented from being broken.
- 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 to make 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.
- Ask for new features by DM or this page! I'll try to answer and consider 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.
If your server is NOT running 1.13.*, 1.14.*, 1.15.*, 1.16.*, 1.17.*, 1.18.* or 1.19.*, 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 MC 1.13.
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?
In reply to Forge_User_41383922:
If there is a way, I don't know it. It might be possible to detect if each log was generated while the plugin was already installed, but even tho I don't think it's a good solution (altho, I could implement it and make it configurable to use that method or the normal one, idk).
Anyway, if you want I will notice you if I find the way ;)
To disable to plugin you can either rename the .jar file and add .disable (or dot+whatever, just to make it not end in .jar) and then reload the server or make the limit 0 (this last one i've never tried before, but I think it should work)
Edit: It seems to work to set the limit to 0
well... it destroys my server cause it cuts a entire forest if i destroy just one block of the tree... not laughed so loud anymore xD
In reply to Forge_User_41591396:
That's why I added a limit you can configure, either using the plugin's commands or editing the config file.
I love this plugin!
Can you add the option to auto-pickup all items from trees?
In reply to maelep_ttv:
Thanks a lot! I've tried it a few times but I don't manage to do it without lagging the server, but maybe I'll try again today :3
In reply to Cristichi:
You can probably try to look at AutoPickup source (source) code to have some idea :)
I already tried this plugins with yours but it didn't works, block from your trees don't auto-pickup
In reply to maelep_ttv:
I took a look at the plugin's page, the thing is that the blocks you break with my plugin are actually broken by the plugin, not the player. Maybe there is some way to say to the server that that player destroyed them, I'll look for it :3
In reply to Cristichi:
That could be sooo great 😍
In reply to Cristichi:
You can try to contact the owner to make your plugins compatible :) He can probably detect when your plugins is enabled =D
In reply to maelep_ttv:
It would be nice but I can work aside with his plugin, I just need to add his plugin to my build and work smart so my plugin won't crash if his plugin is not present on the server. But again, it would be nice.
Problems:
- Doesn't take durability as if you cut it down by hand, it should take ONE block's worth of damage at least!
- Often cuts down a bunch of SEPARATE trees! I only want it to cut one tree at a time, but not set a limit! (As some trees are quite large)