Do leaves drop more items when you let them decay? IT turns out that no they do not i did a test and from my results they drop about the same as when you break them manually (In my test it dropped a little more when i broke them myself)
You can watch me test here:
I always thought that when u let them decay it dropped more but from my test i guess i was wrong. What did you guys think?
I posted this as a youtube comment but I thought I'd post it here as well in case you didn't see the other.
"
I'm wondering if during the time you were doing the timelapse for the decaying ones if it went over 5 minutes because thats the item despawn timer so you could have actually lost some of the early items that dropped via leaf decay?"
There's a better chance of getting a dropping if you do it manually.. I tested it out just now and the one I manually hit dropped more.
Just because it happened ONCE doesn't mean its actually true, there is a lot of random number generating going on for leaf drop items. For instance, you can roll a dice and get a 1 50 times in a row just by luck, the same applies to this, it could just be luck that you're getting more by hand, there would need to be a test of at least like 20-50 of the same test over and over to get a better idea of what is better if anything is better, it could be the same regardless of how the leaf goes away and just be luck.
*checks source code*
I can confirm that it does not matter whether they decay or you destroy them.
Can you post the code that confirms this please? Otherwise you're just spewing nonsense with no evidence to back it up
I mean no disrespect or anything I just really would LOVE to see that your info is true because now I can just destroy all the leaves so I don't have to wait anymore hah.
Can you post the code that confirms this please? Otherwise you're just spewing nonsense with no evidence to back it up
I mean no disrespect or anything I just really would LOVE to see that your info is true because now I can just destroy all the leaves so I don't have to wait anymore hah.
This is the method called when a leaf decays.
private void removeLeaves(World par1World, int par2, int par3, int par4)
{
dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
par1World.setBlockWithNotify(par2, par3, par4, 0);
}
This method is called in the above method. It is also called when destroyed by hand.
public final void dropBlockAsItem(World par1World, int par2, int par3, int par4, int par5, int par6)
{
dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, 1.0F, par6);
}
This method is called in the above method. It determines whether or not a sapling and/or apple will drop.
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
{
if (!par1World.isRemote)
{
byte byte0 = 20;
if ((par5 & 3) == 3)
{
byte0 = 40;
}
if (par1World.rand.nextInt(byte0) == 0)
{
int i = idDropped(par5, par1World.rand, par7);
dropBlockAsItem_do(par1World, par2, par3, par4, new ItemStack(i, 1, damageDropped(par5)));
}
if ((par5 & 3) == 0 && par1World.rand.nextInt(200) == 0)
{
dropBlockAsItem_do(par1World, par2, par3, par4, new ItemStack(Item.appleRed, 1, 0));
}
}
}
This makes it so that saplings drop instead of the leaf block.
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return Block.sapling.blockID;
}
private void removeLeaves(World par1World, int par2, int par3, int par4)
{
dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
par1World.setBlockWithNotify(par2, par3, par4, 0);
}
public final void dropBlockAsItem(World par1World, int par2, int par3, int par4, int par5, int par6)
{
dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, 1.0F, par6);
}
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
{
if (!par1World.isRemote)
{
byte byte0 = 20;
if ((par5 & 3) == 3)
{
byte0 = 40;
}
if (par1World.rand.nextInt(byte0) == 0)
{
int i = idDropped(par5, par1World.rand, par7);
dropBlockAsItem_do(par1World, par2, par3, par4, new ItemStack(i, 1, damageDropped(par5)));
}
if ((par5 & 3) == 0 && par1World.rand.nextInt(200) == 0)
{
dropBlockAsItem_do(par1World, par2, par3, par4, new ItemStack(Item.appleRed, 1, 0));
}
}
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return Block.sapling.blockID;
}
I believe this is sufficient enough.
Fantastic, thank you for providing what I wanted to know, this is a huge relief knowing this now. Thanks man!
back in beta (or was it alpha? memory's gone to ) when notch had decay disabled for a while when he turned it back on they did drop more if allowed to decay naturally. it only lasted for a little while though.
im glad that you confirmed this in the code cause before i would always let the leaves decay on there own because it seemed like that was the way of getting more but now that i know its much better
back in beta (or was it alpha? memory's gone to ) when notch had decay disabled for a while when he turned it back on they did drop more if allowed to decay naturally. it only lasted for a little while though.
it was beta where that happend and maybe that is why people think that they still drop more with decaying like it did before
For me it was just a habit I picked up from beta to just let them decay. My impression was that I 'seemed' to get more saplings that way.
While the code doesn't lie, it can be conflicted by other lines of code and thus cause unintended results. However sounds like it doesn't matter, I'll use more manual removal and see how it goes.
Can someone point out the relevant portions of the posted code that dictates the chance on decay/breaking to drop a sapling? Also how does the apples effect oak/apple tree drops. Could the apple drops lower their chances to drop a sapling?
For me it was just a habit I picked up from beta to just let them decay. My impression was that I 'seemed' to get more saplings that way.
While the code doesn't lie, it can be conflicted by other lines of code and thus cause unintended results. However sounds like it doesn't matter, I'll use more manual removal and see how it goes.
Can someone point out the relevant portions of the posted code that dictates the chance on decay/breaking to drop a sapling? Also how does the apples effect oak/apple tree drops. Could the apple drops lower their chances to drop a sapling?
Updated my code post explaining what each method does.
You can watch me test here:
I always thought that when u let them decay it dropped more but from my test i guess i was wrong. What did you guys think?
"
Just because it happened ONCE doesn't mean its actually true, there is a lot of random number generating going on for leaf drop items. For instance, you can roll a dice and get a 1 50 times in a row just by luck, the same applies to this, it could just be luck that you're getting more by hand, there would need to be a test of at least like 20-50 of the same test over and over to get a better idea of what is better if anything is better, it could be the same regardless of how the leaf goes away and just be luck.
I can confirm that it does not matter whether they decay or you destroy them.
Can you post the code that confirms this please? Otherwise you're just spewing nonsense with no evidence to back it up
I mean no disrespect or anything I just really would LOVE to see that your info is true because now I can just destroy all the leaves so I don't have to wait anymore hah.
This method is called in the above method. It is also called when destroyed by hand.
This method is called in the above method. It determines whether or not a sapling and/or apple will drop.
This makes it so that saplings drop instead of the leaf block.
Fantastic, thank you for providing what I wanted to know, this is a huge relief knowing this now. Thanks man!
back in beta (or was it alpha? memory's gone to ) when notch had decay disabled for a while when he turned it back on they did drop more if allowed to decay naturally. it only lasted for a little while though.
im glad that you confirmed this in the code cause before i would always let the leaves decay on there own because it seemed like that was the way of getting more but now that i know its much better
it was beta where that happend and maybe that is why people think that they still drop more with decaying like it did before
While the code doesn't lie, it can be conflicted by other lines of code and thus cause unintended results. However sounds like it doesn't matter, I'll use more manual removal and see how it goes.
Can someone point out the relevant portions of the posted code that dictates the chance on decay/breaking to drop a sapling? Also how does the apples effect oak/apple tree drops. Could the apple drops lower their chances to drop a sapling?
by c0yote
I tried it with terrible results. I gave my wife my glasses for a second, a creeper showed up and now my wife is pregnant.
Stupid 3D..
"A watched pot never boils."
They took 40 blocks. That’s as many as four tens. And that’s horrible.
Updated my code post explaining what each method does.