When mushrooms spawn others around themselves, does it only occur on the same plane (block level) or will they spawn up or down to differing levels? I know that I often find them spread across a slope in the nether, but don't know if they spawned outward that way or were generated in those positions at world generation.
Mushrooms can spread within a 11x11x11 area, with a much greater chance of spreading to an adjacent block than further away*; world generation follows different rules, similar to other plants (64 attempts within a 15x7x15 area with no limit on the number of blocks placed).
*Spreading code; the game randomly adds +/- 1 to the coordinates of the initial mushroom a total of 5 times (the chance of the x/z position being offset by 5 is one in 243 while for y it is one in 1024, in practice much less since each intermediate position has to be valid), and there is also a 1 in 25 chance per random block tick of an attempt to spread (about 28 minutes per attempt at the default randomTickSpeed of 3):
// Randomly adds (-1, 0, 1) to coordinates of initial mushroom (chance of any value is 1/3 for x/z and 25%
// each of (-1, 1) and 50% of 0 for y).
x = posX + par5Random.nextInt(3) - 1;
y = posY + par5Random.nextInt(2) - par5Random.nextInt(2);
z = posZ + par5Random.nextInt(3) - 1;
// Repeats above 4 times; if new position can support a mushroom (air block with valid ground and/or light
// level) sets initial position to new position. Maximum offset is +/- 5 blocks in any direction (if all
// tests fail offset will be +/- 1).
for (int i = 0; i < 4; ++i)
{
if (par1World.isAirBlock(x, y, z) && this.canBlockStay(par1World, x, y, z))
{
posX = x;
posY = y;
posZ = z;
}
x = posX + par5Random.nextInt(3) - 1;
y = posY + par5Random.nextInt(2) - par5Random.nextInt(2);
z = posZ + par5Random.nextInt(3) - 1;
}
// Places new mushroom at final position if it is valid.
if (par1World.isAirBlock(x, y, z) && this.canBlockStay(par1World, x, y, z))
{
par1World.setBlock(x, y, z, this.blockID, 0, 2);
}
Thank you. I read this to mean that any reasonable countours should be OK. I was just planning an auto sweep mushroom farm and this will make it a lot easier.
When mushrooms spawn others around themselves, does it only occur on the same plane (block level) or will they spawn up or down to differing levels? I know that I often find them spread across a slope in the nether, but don't know if they spawned outward that way or were generated in those positions at world generation.
TIA
Learn something new each day
Mushrooms can spread within a 11x11x11 area, with a much greater chance of spreading to an adjacent block than further away*; world generation follows different rules, similar to other plants (64 attempts within a 15x7x15 area with no limit on the number of blocks placed).
*Spreading code; the game randomly adds +/- 1 to the coordinates of the initial mushroom a total of 5 times (the chance of the x/z position being offset by 5 is one in 243 while for y it is one in 1024, in practice much less since each intermediate position has to be valid), and there is also a 1 in 25 chance per random block tick of an attempt to spread (about 28 minutes per attempt at the default randomTickSpeed of 3):
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Thank you. I read this to mean that any reasonable countours should be OK. I was just planning an auto sweep mushroom farm and this will make it a lot easier.
Learn something new each day