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
Some suggestions:
Fix it so that the player still breakes at least the first block normally, (making it possible to track block history using other plugins like LogBlock and Hawkeye). As it is right now, trees cut down using this plugin leaves no traces in block history and thats quite an grief exploit for tree farms etc.
Mcmmo support. Read through mcmmo (im not sure if there is, but if there are public methods etc) for giving woodcutting XP and Double drop features etc. accordingly with the logs "poped".
Change the "MoreDamageToTools" into a number, being a multiplier of the damage to tools. 0 = no extra dmg. 1= normal damage, cutting each piece by hand. 2= double the damage etc.
Add Giant mushrooms, (perhaps with an option in config to enable it) as they look a lot like trees, and people tend to leave half mushroom trees as well.
Would love to see some of these suggestions in the next version :)
@skeeter215
Have you looked at permissions? : http://dev.bukkit.org/bukkit-plugins/choptree2/pages/commands-permissions/
Can you add a sapling replant feature?
EDIT: Also, how to make it enabled by default? I don't want people to have to toggle it.
Does it work with Bukkit 1.6.4?
I cannot get this plugin to work. it works when i am an op, but when i try as not an op it don't work
This plugin is great... However, It would be perfect if it had an auto replant feature! thats something I would donate for!
@Jdon278
The plugin definitely does check for the event being cancelled... but some protection plugins don't actually cancel it! For example, I've had issues (with other plugins) where WorldGuard doesn't actually cancel the event early enough, so other plugins see an uncancelled event and proceed.
Hey, just started this on my server, it appears that you have not checked if the block break event is cancelled when a player cuts down a tree, this allows players to bypass protections and cut down logs.
Hi, I'm running craftbukkit version 1.7.2-R0.2-3. I am new to hosting Bukkit so please forgive any ignorance I may have. I installed ChopTree2 and as an OP, I can use the plugin perfectly, but none of my users can, even though the config.yml (ActiveByDefault) option is set as true.
I installed the plug-in by putting the choptree2.jar file in the plug-in folder, running the server, logging on to the server to create the yml files, close the server, and then start it up again. Any ideas?
Thanks, Bryan
@wii846
v2.2.2 will work in 1.6.2 though without the few tweaks I've made in the latest release.
v2.3.0 will NOT work in earlier versions as it checks for the new tree types that were added in 1.7
Is there any version to use in 1.6.2 and can I use the 1.7.2 version in or a older version like 1.5 in it? Thanks
I have it set so wood falls because my server has mcMMO and I want people to still get levels but when they cut down trees they cant tell the wood is falling, is it possible to make the wood falling down a bit more animated so you can actually tell its falling and not as if the wood is having a lag effect?
Please add automatic sapling replant feature.
I hope this is not asking too much, But I would like to know if you are planning to add a feature to just let a player cut down the logs normally(without them moving down or just falling like a cacti) and just have the leaves pop. because I would like my players to just cut a tree down normally, but have the leaves pop so that there aren't too many floating or decaying and taking forever to decay for my players who make tree farms. Thank you.
Can you add sapling replant?
I destroy tree -> Sapling is replanted.
ellbristow, I meant that for example, if you hit the bottom of a 6 log tree, it would take the same amount of time to break as a 6 LOG TREE, but you still get all of the wood. So for eg, if it takes 0.5 of a second (i'm not sure exactly what it is) to destroy one log with an iron axe, it would take 3 seconds, or 0.5 X 6 as it would be a 6 log tree. So basically, you are hitting the bottom of the tree the same amount of time you would if you would destroy the tree normally, but just it all goes into one block. If you don't quite understand what I am saying, just reply and I will try and be clearer!
@blomman2
The current system breaks the leaf blocks naturally, so the number of apples that fall is more or less the same number that would fall if you manually broke the leaves. I don't plan to alter that as a part of this plugin, but I'm sure there's another plugin you could use.
@FlOppythp
There is the option to have the tree drop down as you chop it. Each time you break the bottom block, the rest of the tree drops down by 1 block in it's place. It's not a 100% predictable procedure, but it does mean that you still have to chop each block, adding more time to the process.
Is that what you were looking for?
can u do so u have more chance to get apples from it ?:)
A suggestion ellbristow, please could you make it so that there is an option in the config to make the tree break,depending on how big it is. For example, hitting the bottom of a 6 log tree would take 6 times longer than normal, but would still give you the wood! You could also set an option in the config to disable this for if some people don't want this. It may require a new algorithm as the time taken for the tree to fall will change depending on the grade of tall used! However, there must be somewhere in the bukkit API that lets you control that!!
Otherwise this is one of my favourite plugins, but I thought it would be good to have a mode that would make it a little less 'cheaty' whilst still being convient!!