Instant Decay
Instant Decay
This plugin makes leaves decay instantly when destroying logs from trees.
It uses the code which Minecraft itself uses to detect leaves and logs.
It also triggers and obeys the LeavesDecayEvent so other plugins can prevent these leaves from decaying if they need to (for whatever reason).
Features
- Uses Minecraft decay logic
- Drops are exacly the same as normal decay
- It will not affect leaves placed by players
- 10% chance for each leaf to make a break particle+sound effect
- Plays nice with other plugins by sending leaf decay events
- Uses only Bukkit API so it will not break with future updates !
Commands
- /instantdecay disable - disables the plugin's events and remains disabled after "reload"
- /instantdecay enable - re-enables the plugin
Commands have permission "instantdecay.admin" and is defaulted to OP.
Demonstration video
Installing and using
- Download jar file and place it in your "plugins" folder.
- Run/restart the server and that's it !
Source code
As always, in the jar file.
@Jikoo_K
You can't compile the plugin?
In reply to NerdExtremeGAB:
This is a great plugin... But need a update =D
hey everyone, just a quick question. I installed the plugin on my server.. I restarted the server but still I am not getting the effect....
its my first server so treat me like a noob..
what am I doing wrong or do I have to change some permissions
I am whitelisted and oped on the server..
First of all, I love this plugin! It was exactly what I needed for my 1.7.10 server. Now that I am running Spigot 1.8 R01, it no longer seems to be working. Any chance for an update?
Thanks!
EDIT: I take that back, it is working JUST fine. I am an idiot, the way my farm was laid out it didn't seem to be working, but it is.
Thanks again!!
Because this doesn't affect 1.7 trees and leaves, I've updated it here.
Changelog:
Edit: Direct link to compiled binary has been removed. If you do want a build, feel free to PM me. Bear in mind that these builds would not be approved by Bukkit staff and could contain malicious code.
1.7.2 is the ultimate test for it though as there has been the most ever changed in the minecraft code
Just sharing some information: This plugin is working properly with Minecraft update 1.6.4 version. I also tested it with 1.7.2 version and.. the plugin works properly. :) Thank you for your plugin THDigi. Regards, Herweg
Well, I've uploaded a newer version, it needs approving :}
The good news is that it works with 1.4.7, 1.5 and future versions !
Update plz.Great plugin =)
@Doompants409
Yep, CB now has strict code modification rules, plugin updated for CB 1.4.7-R1.0 !
Hi! Don't know if you are updating this plugin anymore, but it appears to have broken with Minecraft update 1.4.2 (and Craftbukkit RC2.0 for 1.4.2)
Here's the error we get whenever anyone interacts with trees now:
Hope you get the time to update! I've always found this to be a great little mod. Thanks :D
2012-09-11 10:47:17 [SEVERE] Exception in thread "pool-1-thread-1522" 2012-09-11 10:47:17 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin InstantDecay v1.0 generated an exception while executing task 718378 at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) at java.util.ArrayList$Itr.next(Unknown Source) at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWorld.java:611) at org.bukkit.craftbukkit.CraftWorld.playEffect(CraftWorld.java:761) at org.bukkit.craftbukkit.CraftWorld.playEffect(CraftWorld.java:734) at digi.instantDecay.InstantDecay.checkLeaves(InstantDecay.java:143) at digi.instantDecay.InstantDecay.access$0(InstantDecay.java:65) at digi.instantDecay.InstantDecay$1.run(InstantDecay.java:57) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52) at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more
Too much it in log.
Mm, strange: McMMO's lumberjack ability seems to cause oak saplings to drop no matter the tree type, although I have not found any apples from other trees. I will play around with the dynamics of it, and see if I can get any apples as well, or if it's just the saplings. Thanks.
Are you psychic? I was looking for a good plugin to do exactly this a few days ago. This works wonderfully, thank you!
Oh, It looks good :D Thx!