ChopTree2
This is a continuation of the very popular but sadly inactive ChopTree plugin by Iso_1. This new version started as a copy of the old one, but has been updated to fit the newer API. I have done what I can to bring this excellent plugin back to life.
2.1+ UPDATE NOTICE: To clean up the code and make the plugin a little more efficient I have removed the .properties files and replaced them with .yml equivalents. Anyone using 2.0 or before will need to reset their settings (which can be done in game using the /choptree toggle {option} command).
What Is ChopTree
ChopTree is a simple plugin, that lets Trees act like cacti. (Chop the bottom block to pop the whole tree)
This plugin is originally coded by askmeaboutlo0m. (Iso_1) kept it updated up to the 1.0.1 Craftbukkit build and removed some errors. Since 1.2 the plugin is now managed by ellbristow.
Please give me feedback and make suggestions for any features you would like.
Features
- Lets trees act like cacti - remove a block and all blocks above are yieled too.
- Alternatively you can make that log blocks move down one by one instead - no more climbing trees.
- Option to pop Leaves when the tree pops (or to bring them down with the logs if using the move down feature)
- Works with all tree types (they all yeild their own wood and saplings).
- Also works with "big" trees that have multiple branches - makes felling them a lot easier.
- Restrict using this plugin to certain tools only.
- Only works on trees, houses made of logs are safe!
Installation
- Copy the .jar to your plugins folder
- Restart your server/plugins
- Edit the config.yml file to your liking (It's self explanatory)
- Restart again
- Enjoy (Important step!)
Commands
/choptee : Main plugin command for all settings etc (Alias /ct)
/togglechop: Turn ChopTree on and off (Alias /tc)
Permissions
- choptree.*: Can chop and use all commands
- choptree.chop: Player can chop trees in one chop
- choptree.commands.*: Access to all commands
- choptree.commands.choptree.*: Access to all admin commands
- choptree.commands.choptree.info: Access to /choptree
- choptree.commands.choptree.reload: Access to /choptree reload
- choptree.commands.choptree.toggle.*: Can toggle all choptree settings
- choptree.commands.choptree.toggle.activebydefault: Can toggle this setting
- choptree.commands.choptree.toggle.useanything: Can toggle this setting
- choptree.commands.choptree.toggle.moredamagetotools: Can toggle this setting
- choptree.commands.choptree.toggle.interruptiftoolbreaks: Can toggle this setting
- choptree.commands.choptree.toggle.logsmovedown: Can toggle this setting
- choptree.commands.choptree.toggle.onlytrees: Can toggle this setting
- choptree.commands.choptree.toggle.leaves: Can toggle this setting
- choptree.commands.togglechop: Access to /togglechop
Hey, other users have mentioned it but I wanted to confirm it myself as well. The "ActiveByDefault" option only works for OPs. Please make it so every player (including non-OPs) can use the plugin as well. That's my only complaint, other than that, thanks for continuing the work on this plugin.
By any chance can you make it so it removes leaves within a 3 block (in each direction) from the top log?
Hey! Plugin is really cool, but... in WorldGuard cuboid everyone can chop a tree :/
And the second thins. Could you make Auto-Replant?
This plguin have big problem It doesnt support residence = everyone can chop trees from whole world, even from other players reisdence = its useless.
fix it please
I get the same as Tumpou, I also use Tekkit and it does work with tekkit but if u want it to work with everything you need to set in config the setting "UseAnything: false" to "UseAnything: true" Unfortunatly this plugin does not work with custom ID's It just reset the config on me when It tried adding the ID's of the tools from tekkit.
Now about the breaking in protected issue that is below this comment, I use Towny and It does the same thing there as well I believe this is because the normal method that cuts down the entire tree instead of moving the tree blocks down after each cut does not pass break events to the server it acts like worldedits superpickaxe their for the break cannot be prevented as it is not passing the break or destroy events to the server when u chop the tree.
If it is actually passing those events then maybe it needs to pass it as the player or something because this is the only issue with this plugin.
This plugins is great to prevent floating trees but there is one big problem. Normal players who normally doesn't have access for example at spawn region (WorldGuard) can destroy trees in that area and it for some reason LogBlock doesn't show who destroyed it.
EDIT: Seems to be reported already in tickets.
@koslasmv
i guess you have to give people the choptree.chop permission..
how do i make it so anyone can use it?
@Salvarath
Even if you set ActiveByDefault to true, it still only lets ops use it. Non-ops cut trees as normal, but if I op a user, they can immediately cut it the improved way. ActiveByDefault seems to do nothing. Having an opped user gets them added to the player list in the config directory.
But I'd like it to work with all users by default, which is what ActiveByDefault should do, but currently it does not.
Any chance of getting this fixed? Other than that, this is a simple, yet beautiful re-doing of the ChopTree mod, and I really appreciate ellbristow's work to make it happen.
@Doitle To make it so everyone can use it by default go into choptree 2's config.yml file and open it with notepad. Now there should be something like this:
ActiveByDefault: false.... change that to true so that everyone can use it instead of just ops.
@AidenVennis Big thanks for the instructions on getting it working in Tekkit, worked like a charm.
Also big thanks to ellbristow for the plugin.
I need some help getting this working.
It's a Tekkit 3.0.4 server, recently installed. Others have claimed that Choptree2 works on a Tekkit 3.0.4 server.
"This server is running CraftBukkit version git-Bukkit-jenkins-CraftBukkit-98 (MC: 1.2.5) (Implementing API version 1.2.5-R1.3-MCPC-SNAPSHOT)"
The only other plugin in the /plugins folder is Dynmap, which is working properly.
The list of plugins (/plugins) includes choptree.
I've restarted the server a number of times, for various reasons. The .yml file is in the /ChopTree2 directory. I originally just used the basic settings. When it didn't work, I played around with them. So far no dice.
Trees don't chop down with any axe.
Any suggestions on troubleshooting? Thank you in advance!
Any suggestions on what to try?
Also, is this OpenSource?
Hey, I am using a Mod Pack called Tekkit. I am trying to make this mod support all the new tools' axes. But it does absolutely nothen. So I tried the name and the ID. Nothen.
@Doitle
You need to set the right permissions. Install Permissions Bukkit to get this to work, the normal permissions file doesn't seem to be working right.
Edit the config.yml and under groups:default:permissions add a line (make sure the the spaces are correct!!! no tabs) and add a line called "choptree.chop true" Reload the plugin's or restart the server to make sure it loaded right and things should be working.
As for the custom items, I can't get them to work either. Maybe it has something to do with the fact that I use nano via a linux terminal to edit the file, not sure, but the file get's reset everytime I reload the plugin.
Edit: Tried item names that Itemizer gives (X1285,X1284,X1286,X27547,X27568,X30199) from Tekkit 3.04 and it worked just fine! To get this to work you have to shut down your server then edit the config file and start your server again. You can copy to names I pasted above (contains all the axes that recipe manager shows when searching for axe) or you could check this yourself with the Itemizer plugin like ellbristow said in the first place...
I decided to try ChopTree2 since they didn't include Treecapitator in Tekkit 3.0.3 (Maybe it doesn't support the build of minecraft that 3.0.3 is based on?)
However, I'm having the same problem as Mulomwesi... I was hoping it would be easy to set all players on my sever to be enabled for ChopTree, since this was the behaviour running Tekkit 2.1 with treecapitator. However only Ops can use ChopTree currently.
Maybe there's something obvious I'm missing?
@ellbristow
Okay, i filed a ticket since i cannot get it to work.
@4rz0
If you're having difficulty getting the official name, try my Itemizer plugin
@4rz0
you should be able to add the tools by their official item name, i.e. OBSIDIAN_AXE. Make sure all items are separated by commas ( , ) then run /choptree reload.
Alternatively, stop the server, edit the config.yml to add the required tool name, start the server.
If neither of them work, start a ticket and attach the config.yml you want it to use and I'll give it a look.
How can i add custom tools to the AllowedTools list?
I tried adding the Tools from Redpower and ICĀ² with writing down the item IDs and the item names, but with both settings the extra entrances were deleted after reloading the plugin.