NoFloatingTrees
NoFloatingTrees
Description
This plugin will try to remove any logs that are left floating in the air when a player cuts down a tree so that the leaves can decay. Floating leaves are a pet hate of mine and the current ways to tackle them seem to either involve giving the player lots of easy free wood or take up an awful lot of admin time.
Any tree that has been partially cut down will decay over time as leaves normally do 40 seconds after being cut. A log that decays naturally will have a 15% chance of dropping an item, this should discourage people from cutting down trees and then waiting for them to fall. All of these chances and timings can be changed via the config file.
If you have the LogBlock plugin installed, any blocks that this removes will be logged as the user NoFloatingTrees. Note this this will only work on trees that are cut down when the plugin is installed, there is not much that can be done about existing ones :(
Bug Reports / Suggestions
If you find a bug, encounter a problem or have a suggestion, please fill out a ticket via the Tickets link above. I do not have the time to read through the comments section, any comment that fits the previous three categories will be ignored.
Commands
/nft queue - Prints the number of blocks currently in the decay queue. To use this command you must have the nofloatingtrees.queue.size permission which also defaults to OPs only.
/nft purge - Used to removed all floating trees regardless of how close a player is. To use this command you must have the nofloatingtrees.queue.purge permission which defaults to OPs only.
Config
Default
use-logblock: true ignore-worlds: - world_nether - world_the_end decay: frequency: 2 wait-time: 40 chance: 15 drop-chance: 15
use-logblock
If this is set to false blocks removed by the plugin will not be logged even if LogBlock is found.
ignore-worlds
If you have worlds where people can't (or just don't) cut down trees you should list them here, this will improve performance slightly.
decay
frequency
How often floating logs should try to decay, in seconds.
wait-time
How long a log should stay floating before starting to decay, also in seconds.
chance
How likely it is for a low to decay per try this is a percentage so setting it to 100 will cause the entire tree to vanish in one go.
drop-chance
Similar to the above except this controls how likely it is for a decaying log to drop an item.
Contributing
Contributions to the project are very much welcome, if you have a feature that you want implemented and know a nice way to do it then consider forking the repo and submitting a pull request. These will be accepted as long as the following simple guidelines are followed.
- Do not edit the structure of the pom.xml file, feel free to add a dependency if you need it but the formatting and structure should not be changed.
- If you are exposing a new API method, add a JavaDoc comment to it, but don't over-comment internal code.
- Follow the existing code style, don't antagonise over every space though !
All dependencies that are used are now available from a public Maven repo, so you don't have to worry about building several other projects just to add a simple change any more.
Source Code
Dev Builds
Changes Since Last Release
Download
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://bukkit.jacekk.co.uk:8000/job/NoFloatingTrees/
-
View User Profile
-
Send Message
Posted Mar 26, 2012Just moved my server to 1.2.4 now that all my other plugins have been properly updated. NoFloatingTrees still works much as expected, but there is a new bug.
If you fly into an area with very large trees and just hit a leaf on top of one of those trees, it triggers degen in a fairly large area as if logs had been broken.
-
View User Profile
-
Send Message
Posted Mar 20, 2012@the_merciless
Not really my aim with this :s I'm trying to make the game more realistic not less.
There is another plugin that does that though, cant remember the name right now :(
-
View User Profile
-
Send Message
Posted Mar 19, 2012Would be awesome if it planted a sapling where a tree has been removed!
-
View User Profile
-
Send Message
Posted Mar 15, 2012@VariousArtist
The problem that I had before was getting it to work quick enough but I had a great idea in the shower the other day. It should make it seem a bit more natural.
-
View User Profile
-
Send Message
Posted Mar 15, 2012@wide_load
Nice idea, like it! 0.6.1 installed and testing.
Thx, wide!
-
View User Profile
-
Send Message
Posted Mar 15, 2012@cadika_orade
Possibly. I am working on a nice way to have the logs decay just like the leaves do. So they would drop, maybe with a reduced chance.
-
View User Profile
-
Send Message
Posted Mar 15, 2012Still love this plugin. Thank you!
EDIT: Suggestion: If a tree is to be purged but a player is within X blocks of it, perhaps the logs could be dropped as items?
-
View User Profile
-
Send Message
Posted Mar 15, 2012@VariousArtist
... nothing to say to that.
But it look sliek the file approval process is taking longer than usual. so here is a direct link http://dev.bukkit.org/media/files/580/518/NoFloatingTrees.jar
-
View User Profile
-
Send Message
Posted Mar 15, 2012I guess that explains a lot! =)
Especially the global warming...
I bet you look good on the dancefloor!
-
View User Profile
-
Send Message
Posted Mar 15, 2012@VariousArtist
The latest version is 0.6.1, it looks like a file has gone missing :s
I'll upload it now.
-
View User Profile
-
Send Message
Posted Mar 15, 2012@wide_load
wide_load, to me this does not look as if its working as its intended: http://pastie.org/3600045
Thats 0.6 on CB2063.
-
View User Profile
-
Send Message
Posted Mar 10, 2012@the_merciless
Any version after R1 :)
-
View User Profile
-
Send Message
Posted Mar 10, 2012by latest version do u mean the beta build for 1.2.3
-
View User Profile
-
Send Message
Posted Mar 10, 2012@the_merciless
It works perfectly with the latest version of Bukkit as it is. I'm trying to find the time to improve on the tree checking method still.
-
View User Profile
-
Send Message
Posted Mar 10, 2012Any news on an update?
-
View User Profile
-
Send Message
Posted Mar 2, 2012@VariousArtist
1.2 came out yesterday and i have other plugins to mnaintain. Have a bit of patience, I'll get to it probably today !
-
View User Profile
-
Send Message
Posted Mar 1, 2012Hi wide_load, v0.6 isnt working on CB R6+. Hope for an update, please?
Thx!
-
View User Profile
-
Send Message
Posted Feb 23, 2012@ClavusElite
It will hopefully be 10 minutes from the time that tree was cut down in the next version. I just need to find some time to work on this.
-
View User Profile
-
Send Message
Posted Feb 23, 2012"People that start cutting a tree as the removal task starts will be unlucky."
Wouldn't it be possible to check for nearby players? Or check a timestamp when the first block was removed (and only remove if >5 minutes)?
-
View User Profile
-
Send Message
Posted Feb 21, 2012@JoneKone
No, the old event system is being removed not the new one.