It seems to just take into account if there is a log attached to the leaves or not. I loaded a new world, nothing was decaying at all. Then I punched out the log attached to the ground, still, nothing decayed. Then I punched out the whole log, all the way through the tree, and it started decaying.
Still prefered the old way, but this is easily good enough until Notch re-adds it officially. Good job!
I've uploaded a new version that should hopefully fix any problems with leaves decaying prematurely.
Could you expand on the technical differences between version 1 and 2?
v1 enabled the old leaf decay algorithm that had been disabled. This had the side effect of causing some outer leaves to decay before a tree had been cut down. v2 replaces this algorithm with one that causes leaves to search up to 4 blocks away for a trunk or other solid object connected by leaves. It also changes the generation of Big Trees so that one log is inserted in the center of large leaf spheres, as otherwise these groups would be too far away from the rest of the tree.
If anyone has suggestions for tweaks to the algorithm, let me know. I'm aware that it doesn't behave identically to the original, but I wanted to get something out there that didn't cause trees to fall apart as you walked up to them.
Okay, I downloaded it and everything, but it doesn't seem to work. I put it ki.class and fa.class and I deleted META-INF, too. Does it have something to do with the fact that I had Minecraft open at the main menu while I was doing it? Or maybe that I accidentally completely extracted minecraft.jar?
Okay, I downloaded it and everything, but it doesn't seem to work. I put it ki.class and fa.class and I deleted META-INF, too. Does it have something to do with the fact that I had Minecraft open at the main menu while I was doing it? Or maybe that I accidentally completely extracted minecraft.jar?
(Also, this is my first mod...)
Close the damn game, seriously, that should be OBVIOUS.
Hey, smartass, I did and it didn't help. I even redownloaded it and everything and got jack ****.
Okay, I downloaded it and everything, but it doesn't seem to work. I put it ki.class and fa.class and I deleted META-INF, too. Does it have something to do with the fact that I had Minecraft open at the main menu while I was doing it? Or maybe that I accidentally completely extracted minecraft.jar?
(Also, this is my first mod...)
Close the damn game, seriously, that should be OBVIOUS.
Hey, smartass, I did and it didn't help. I even redownloaded it and everything and got jack ****.
Lets see if we can get you sorted out here. Why don't we start from the very beginning. Delete your .minecraft/bin and .minecraft/resources folder. Then go ahead and start your launcher and have it redownload the game. Exit the game. Make sure its completely closed down by going to the task manager (if you're on windows. Linux just "ps -A | grep java" to check) and making sure there are no instances of java running just to be safe. This means you'll have to close down any other applications that are currently using it.
Now extract ki.class and fa.class from the decaying leaf mod to someplace you'll be able to easily grab them from in a minute. Sometimes copying from one archive to another acts wonky. Now open up your fresh .minecraft/bin/minecraft.jar in some program that can handle extracting .jar archives. I HIGHLY recommend the 7-zip beta for this. You can get it at http://7-zip.org. Once its open, first delete the META-INF folder, as well as both ki.class and fa.class. Then move the copies of ki.class and fa.class we extracted earlier into the minecraft.jar archive we still have open.
Finally close 7-zip (or whatever other archive program you ended up using). It wouldn't hurt to immediately re-open ./mincraft/bin/minecraft.jar just to double check that our new ki.class and fa.class did indeed get copied and saved properly. In 7-zip our copies will have a date in the created and access columns while the other files shouldn't. Once you've verified that our new files are in place and closed your archive manager, go ahead and start up minecraft again. You should be good to dance under raining saplings now. :smile.gif:
Note that there have been reports of PowerArchiver mangling .jar files so I wouldn't recommend using it for this process.
So, basically, close Minecraft and any other java-using programs, delete the Minecraft folders (after backing up the saves and other such files), open Minecraft, which will redownload said files, and try to download the mod?
Open With-->Choose Default Program-->Uncheck Always use this program... This keeps original file association and adds the program to the open with menu. When you're done playing Minecraft, I suggest a good 'how to' for windows book.
So, as far as I know I replaced the files in the right .jar file using WinRAR. I deleted the meta-inf folder. annnnd Minecraft just won't load. I get a black screen. Is this because I'm using the browser version? I can't use the client version, it crashes too much. But I can't enjoy the game all together unless the leaves naturally decay. :/
Suggestions?
Edit: I tested it in the client. It works and that's great. But unfortunately I can't play with it on there because it'll just crash in about 5 minutes, even if I reduce settings. Any way to get this to work on the browser?
This is a really useful mod, but has to be coded to work on SMP Servers, too.
SMP was the reason Notch disabled leaf decay in the first place. I imagine it isn't the best idea to re-enable it there.
Is this true? Cause i really want Decaying Leaves back on my SMP server. I hate that i have to spend so much time cleaning up the leaves from the trees i cut down.
Could you expand on the technical differences between version 1 and 2?
Still prefered the old way, but this is easily good enough until Notch re-adds it officially. Good job!
Here goes: http://han.avata.co.uk/decaying_leaves_v2.zip
BDcraft.net BDcraft Web Admin
v1
v2
It seems to be involved in the generation of large trees (as opposed to normal sized ones).
-Luis
LAR stands for Luis Antonio Renteria.
v1 enabled the old leaf decay algorithm that had been disabled. This had the side effect of causing some outer leaves to decay before a tree had been cut down. v2 replaces this algorithm with one that causes leaves to search up to 4 blocks away for a trunk or other solid object connected by leaves. It also changes the generation of Big Trees so that one log is inserted in the center of large leaf spheres, as otherwise these groups would be too far away from the rest of the tree.
If anyone has suggestions for tweaks to the algorithm, let me know. I'm aware that it doesn't behave identically to the original, but I wanted to get something out there that didn't cause trees to fall apart as you walked up to them.
(Also, this is my first mod...)
Hey, smartass, I did and it didn't help. I even redownloaded it and everything and got jack ****.
SMP was the reason Notch disabled leaf decay in the first place. I imagine it isn't the best idea to re-enable it there.
Lets see if we can get you sorted out here. Why don't we start from the very beginning. Delete your .minecraft/bin and .minecraft/resources folder. Then go ahead and start your launcher and have it redownload the game. Exit the game. Make sure its completely closed down by going to the task manager (if you're on windows. Linux just "ps -A | grep java" to check) and making sure there are no instances of java running just to be safe. This means you'll have to close down any other applications that are currently using it.
Now extract ki.class and fa.class from the decaying leaf mod to someplace you'll be able to easily grab them from in a minute. Sometimes copying from one archive to another acts wonky. Now open up your fresh .minecraft/bin/minecraft.jar in some program that can handle extracting .jar archives. I HIGHLY recommend the 7-zip beta for this. You can get it at http://7-zip.org. Once its open, first delete the META-INF folder, as well as both ki.class and fa.class. Then move the copies of ki.class and fa.class we extracted earlier into the minecraft.jar archive we still have open.
Finally close 7-zip (or whatever other archive program you ended up using). It wouldn't hurt to immediately re-open ./mincraft/bin/minecraft.jar just to double check that our new ki.class and fa.class did indeed get copied and saved properly. In 7-zip our copies will have a date in the created and access columns while the other files shouldn't. Once you've verified that our new files are in place and closed your archive manager, go ahead and start up minecraft again. You should be good to dance under raining saplings now. :smile.gif:
Note that there have been reports of PowerArchiver mangling .jar files so I wouldn't recommend using it for this process.
So, basically, close Minecraft and any other java-using programs, delete the Minecraft folders (after backing up the saves and other such files), open Minecraft, which will redownload said files, and try to download the mod?
You need to put it in the one located at: ~\.minecraft\bin\minecraft.jar
The one you put it in is just the launcher/wrapper.
BDcraft.net BDcraft Web Admin
Why isn't WinRAR in the "open with" menu?
Open With-->Choose Default Program-->Uncheck Always use this program... This keeps original file association and adds the program to the open with menu. When you're done playing Minecraft, I suggest a good 'how to' for windows book.
Suggestions?
Edit: I tested it in the client. It works and that's great. But unfortunately I can't play with it on there because it'll just crash in about 5 minutes, even if I reduce settings. Any way to get this to work on the browser?
Is this true? Cause i really want Decaying Leaves back on my SMP server. I hate that i have to spend so much time cleaning up the leaves from the trees i cut down.
J