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 Jun 12, 2012this plugin is very good.
-
View User Profile
-
Send Message
Posted May 26, 2012<<reply 725047="">>
Haha, it would, probably not something most people would appreciate though.
-
View User Profile
-
Send Message
Posted May 26, 2012cool. Would it be possible to turn the blocks into live silverfish instead of deleting? I'm feeling hostile...
-
View User Profile
-
Send Message
Posted May 13, 2012<<reply 704448="">>
Will do, I recently added the commands and forgot to update the info ;)
-
View User Profile
-
Send Message
Posted May 13, 2012Hi i love your plugin, but i took me quite sometime to figure out how it worked.
Small tip, post here on the main page, some command en permissions info
Also i have logblock installed, but the plugin doesn't automaticly remove trees.
Is this normal? Ticket on GitHub :) #2
-
View User Profile
-
Send Message
Posted May 5, 2012@pimsserver
/me bows
-
View User Profile
-
Send Message
Posted May 5, 2012YOU. ARE. MY. HERO.
-
View User Profile
-
Send Message
Posted Apr 16, 2012I will test next version.
-
View User Profile
-
Send Message
Posted Apr 15, 2012I watched the plugins behaviour for a few more days. The trees that dont get removed are mostly big trees (thats not new) and pines. Also "branches" of big jungle trees dont get detected correctly and stay.
-
View User Profile
-
Send Message
Posted Apr 12, 2012@wide_load
The time thing sounds better. No one was underground. The guy who reported that issue was near the world border, in a secret tree farm in the desert. He instantly reported it, and tped to him. I think it was a bug or it was connected to a tree or something like that. Might of been a once-in-a-time bug. I'll go to TreeAssist. I was hoping not to add plugins, but get rid of some. KK
-
View User Profile
-
Send Message
Posted Apr 12, 2012@number1Master
:)
1. I will be replacing the radius thing with a delay before the decay starts soon anyway which I think will look a bit more natural.
2. Maybe someone was close underground ?
3. Nope :D This is meant to make the game look nicer without making it easier. But http://dev.bukkit.org/server-mods/nofloatingtrees/?comment=57
-
View User Profile
-
Send Message
Posted Apr 11, 2012I was curious about the following:
... I typed this in a weird accented way.
-
View User Profile
-
Send Message
Posted Apr 10, 2012@VariousArtist
I will do that :D
It could just be that there were in unloaded chunks and then you got too close. Blocks will only decay if the chunk is loaded and there are no players within 40 blocks of them. I will probably change this to be a timed delay before starting the decay though since the distance check is pretty intensive on the server and it stops them decaying in populated areas.
-
View User Profile
-
Send Message
Posted Apr 9, 2012I know. Its really a bit strange, I have to admit. It seems to remove some but others stay. Best is you ignore this till I can offer you a proper debug test for this.
-
View User Profile
-
Send Message
Posted Apr 9, 2012@VariousArtist
Were they there before you installed the plugin ? It will only for for trees that were removed while the plugin was enabled.
-
View User Profile
-
Send Message
Posted Apr 9, 2012Somehow v0.8.1 does not work properly on our CB2149 servers. There are still masses of floating normal trees on the map.
-
View User Profile
-
Send Message
Posted Apr 6, 2012@GrimblyGorn
Unfortunately not :( WorldEdit has a handy tree remover tool though, do "/tool deltree" then right click a floaty tree.
-
View User Profile
-
Send Message
Posted Apr 5, 2012Does this work on trees that were already floating before the plugin is added to the server ?
-
View User Profile
-
Send Message
Posted Mar 30, 2012@the_merciless
TreeAssist - Plugin to replant saplings
-
View User Profile
-
Send Message
Posted Mar 27, 2012@jdekruyf
File a ticket, make sure to quote the version number.