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 Aug 19, 2012@AlloyCraft
Try it.
-
View User Profile
-
Send Message
Posted Aug 19, 2012Does this work on 1.3.1?
-
View User Profile
-
Send Message
Posted Aug 1, 2012@TickleNinja
:P Sorry.
-
View User Profile
-
Send Message
Posted Aug 1, 2012Screw you man! Now we cant go thoring those trees down! :p
-
View User Profile
-
Send Message
Posted Jul 21, 2012@zomorocks26
Nope he's fine, that is the correct reaction ! You should tell him about /tool deltree form worldedit though :P
-
View User Profile
-
Send Message
Posted Jul 21, 2012Lol my friend hates it when people don't chop down trees all the way. If he sees a tree like that he's like OMG OMG and chops it all the way down cause it bugs him that much (I swear something is wrong with him). He would love this plugin lol
-
View User Profile
-
Send Message
Posted Jul 21, 2012@GalaranM
@Andy_Fox
Very nice to hear :D
-
View User Profile
-
Send Message
Posted Jul 20, 2012This is exactly what my server needed. Thanks you!
-
View User Profile
-
Send Message
Posted Jul 17, 2012Works like a dream on my server running latest CB plus plus build
-
View User Profile
-
Send Message
Posted Jul 8, 2012@pimsserver
Had you just updated the plugin ? The file format changed a while ago. Try delete the .bin file from the plugins folder.
-
View User Profile
-
Send Message
Posted Jul 7, 2012http://dev.bukkit.org/paste/5751/
CB1.2.5-R4.0
NFT v0.10
-
View User Profile
-
Send Message
Posted Jun 26, 2012<<reply 778932="">>
True. Removing old trees would require processing pretty much every block in the entire world. Not really possible ;)
-
View User Profile
-
Send Message
Posted Jun 26, 2012it dont work for oldtrees :( who was vreaked before that plugin
-
View User Profile
-
Send Message
Posted Jun 21, 2012<<reply 770693="">>
Glad you like it :D
-
View User Profile
-
Send Message
Posted Jun 21, 2012Sounds good. I've been testing it out a bit when I'm on and I must say I'm VERY happy with this plugin so far. I always stopped and finished off any trees I passed by that were only half there.
1.3 is probably going to be the last time I ever update my server to the latest version. I'll be looking forward to getting NFT running on it :-D
-
View User Profile
-
Send Message
Posted Jun 20, 2012<<reply 768380="">>
It will do nothing to existing blocks, it only checks hen a player breaks a block.
-
View User Profile
-
Send Message
Posted Jun 20, 2012The few people on the server are all real life friends so I'm not really concerned about abuse. Was mainly wondering if it would potentially interfere with structures built out of logs.
-
View User Profile
-
Send Message
Posted Jun 20, 2012<<reply 766954="">>
It does some basic checks. the block that is broken must not have any other logs next to it and must have either dirt or air below it and a log above it. There must be a leaf block as the highest block at that position too. Works pretty well most of the time but bear in mind that if someone knows the checks they could easily abuse it, which it why it logs (not pun intended) to LogBlock so you can undo.
Thanks :D I made most of them to solve some kind of problem on my server not just to try and get downloads so I guess that makes them not pointless.
-
View User Profile
-
Send Message
Posted Jun 19, 2012If I built, say a bridge out of logs. Would NFT see those logs as floating tree blocks or can it somehow distinguish between natural trees and placed logs?
Very impressed with your plugins btw. Think I downloaded about half of them yesterday.
-
View User Profile
-
Send Message
Posted Jun 12, 2012<<reply 753048="">>
:D thanks :D