Lumberjack
Don't you hate those big trees where you cannot reach those high blocks while standing on the ground. Trees should be felled like a boss, so take them down with Lumberjack while your feet are still touching the ground!
Lumberjack released!
What does Lumberjack do?
Lumberjack detects if a player destroys a wood block that is part of a tree. The highest wood block will be destroyed instead of the block that the player destroyed, unless it is the same block of course. Works for oak, birch and redwood trees!
No more annoying trees! Please support this project by leaving a comment with your thoughts on it!
Help it doesn't work!?
If you have downloaded this plugin and it doesn't seem to work for you, ensure the following things:
- download the latest craftbukkit server and Lumberjack
- is Lumberjack enabled? Type the following command to be sure:
- /lumberjack enable
- does the tree you are chopping meet the following requirements?
- is block you are chopping connected to the the complete trunk?
- is the base of the trunk (the lowermost block) placed on a dirt (without grass) block?
- is the trunk of the tree connected to at least 4 naturally grown leaf blocks?
- (versions before 1.0.1v1) If you have NoCheat enabled then make sure to set the following options (found by ace1177)
- blockbreak.reach.check = false
- blockbreak.direction.check = false
- blockbreak.noswing.check = false
Lumberjack commands
As of version 1.8.1v2, Lumberjack has 4 commands. The commands can be viewed by typing /lumberjack . Most of the commands can be combined e.g. /lumberjack enable silent . It is also possible to use the shorter versions of the options, the 'hotnames' e.g. /lumberjack e s . This has the same result as the previous command.
enable
description: enables Lumberjack
hotname: e
disable
description: disables Lumberjack
hotname: d
silent
description: hides most Lumberjack messages
hotname: s
normal
description: shows all Lumberjack messages
hotname: n
Future Features
I decided to create a page that enlists all the plans I have for Lumberjack. If you have suggestions or fresh new ideas, feel free to leave a comment on the plans page!
Supporting the author
If you use and /or like /dislike Lumberjack, then please let me know why and what changes you would like to see! It really motivates me to continue the development :)
If you are a really nice person, you know that it takes time to develop plugins and you are willing to drink a glass of milk instead of a milkshake to save a dollar, then you can donate that dollar here
@Zombiemold
Yay! Happy to hear that it's working :). I don't think so? Have they enabled lumberjack for themselves? I haven't used permission checks because I didn't think it would be useful to prevent some people from using the plugin so that is probably not why it doesn't work.
Can you still use Lumberjack when you deop yourself?
It's working! Gaining job levels and everything!
One issue though... no one, other than me, can seem to make use of Lumberjack at all. Odd... am I missing a permission node?
@deazurain
I gave up on my first attempt to fire an block break event and radically changed the way of handling things. Now I am using the idea I posted in the ticket: creating an extended class and an instanceof check to stop the impending doom of recursive onBlockBreak calls. For some reason this worked very nicely because minecraft doesn't crash this way :)
The bad thing is that I still don't know why it crashed with my initial code. This is bad because it might be the problem that Netu had with mcMMO. I think that the crashing problem is caused by a mixture of using concurrent threads for events, networking stuff and bad coding habits (not by me ofcourse).
Anyway I will upload the newest version as soon as possible so you guys can test it out!
@Zombiemold
Hahaha, I have been trying to solve your problem now but oddly enough I only achieved to crash minecraft. My screen turned black X3
EDIT: O MY GAWD I actually managed not only to crash the client but the server as well. Im getting "Failed to handle packet: java.lang.NullPointerException" errors even after restarting the server and the client :O. I think I will be a very succesfull bad-intent-hacker (sort of, don't hate me for using the word hacker) ^^
Wow a stunning 120 downloads after 24 hours! This is a very nice achievement if I may say so myself ^^
Loving the addon, Thanks deazurain
I have released a new version! It isn't a big update but it incorporates the requested configuration file. The download link on the top right of this page may still point to the older version because the latest Lumberjack.jar still needs to be approved! So remember that if you want the latest version, then use the link I provided by clicking on the big banner at the top of the main page.
@Zombiemold
There probably is. I think I know why it doesn't work with jobs and I think I also know how to fix it, which is a good thing. But to be sure I will have to take a look in the craftbukkit source code to see how and when exactly a block break event is fired.
Lets make a ticket!
Is there any way, this could be made optionally compatible with Jobs?
The log breaks don't register with Jobs, so players can't make any money.
It's a great plugin, and is updated, and well maintained.
http://forums.bukkit.org/threads/econ-jobs-v2-5-4-jobs-plugin-for-minecraft-1317.23429/
@deazurain
Thanks
@ledhead900
For now I will make a ticket for your request. The next update will probably contain a configuration file for the default options as well as a player configuration to save the personal settings of players through server restarts.
@deazurain
Could we get it so that this plugin auto enables for everyone and they have to use the commands only to disable it and stop the msg spam ? maybe a config option for enabled by default. That would be really helpful
Can anyone confirm if this plugin is having the same error as, for example, ChopTree while running mcMMO?
Lumberjack version 1.8.1v2 is out!!! Hurry up and adopt it into your server :D!
Hey Tobyz and Dianneta, Thanks for your replies, time to make some tickets! (I just want to try it out :P) I have been busy with university homework for some time now but after Ubuntu has updated to the latest version I will try to set up my minecraft plugin development environment again!
By the way, you can subcribe to this plugins' updates here!
AWESOME plugin! People on my server love it :) Suggestions: -Config options to disable the console messages. -Update the Algorithm for "Tall" trees with a tiny amount of leaves on the top (not large trees with complex trunks). - Info: Max hight a player can reach from ground level is 6 up. - Option A: So long as the top wood block is 6 or above, and there are no leaves within 1 of all trunk blocks 5 and below, bring all upper leaf blocks which are within 1 square of the trunk 6 and above down by one square vertically. - Option B: Move the leaves above the top block down 1 block when a lower trunk breaks if the main trunk is 6 or more. - This will ensure that the top of tree always has at least one leaf block adjacent to it, yea the leaf block won't "follow" the trunk all the way down once it gets below 6 and look all weird ;)
I have an idea that should work for larger tree trunks too.. but ill give you that only if you want it as its a bit more complex...
could this optionally chop down the entire trunk at once?
Thank you all for your comments!
I've come up with some more ideas of how to improve the tree detection:
I tried and it doesnt work very well.... on big redwood trees where only the top got leaves it wont cut them properly ;(
I've not looked at your source (obviously), but usually these tree chopping algorithms work like this: Detect if a log is connected to soil, detect if log is connected to other logs, verify log is not placed by a player, cut all logs connected to that log and logs connected to leaves perpendicularly. This usually works out pretty well.
If *I* were coding this, I'd have the plugin verify it's not user made, then just destroy all logs and leaves five perpendicular blocks from the tree. This is because I am a lazy, and this would be easy, but very dangerous. That's why I turn to you and your awesome plugin! So thank you for it, and I hope it continues to be improved!