yep that worked perfectly, thanks a bunch!
wish itd spread a lil faster but im pretty sure i have it going as fast as itll go
What is your tick rate set to? I messed around with this and fire and got fire spreading pretty fast. Another way you could possibly increase it is by removing that if I mentioned earlier, as right now you probably have a 1/2 chance of it spreading each tick
Of course also thinking about it fire does have some more in it that just deals with spreading, so some of that may have been related to that.
Edit: I've found modifying the setup can increase the speed a bit.
for (int l1 = 0; l1 < 4; l1++) //If you want more than up to 4 to place at a time, then increase that. I have mine set to a l1 < par5Random.nextInt(20) + 4.
{
if (par1World.isAirBlock(k, i1, k1) && canBlockStay(par1World, k, i1, k1))
{
par2 = k;
par3 = i1;
par4 = k1;
}
k = (par2 + par5Random.nextInt(3)) - 1;
i1 = (par3 + par5Random.nextInt(2)) - par5Random.nextInt(2);
k1 = (par4 + par5Random.nextInt(3)) - 1;
if (par1World.isAirBlock(k, i1, k1) && canBlockStay(par1World, k, i1, k1))
{
par1World.setBlockWithNotify(k, i1, k1, blockID);
}
}
Essentially what you do then is you make it so that each time a block is found then it will spread. More spread at once.
Warning: Don't do quick spreading for flowers. Your world will quickly be overtaken by grass, lilly pads, flowers, bushes, and more grass.
wish itd spread a lil faster but im pretty sure i have it going as fast as itll go
What is your tick rate set to? I messed around with this and fire and got fire spreading pretty fast. Another way you could possibly increase it is by removing that if I mentioned earlier, as right now you probably have a 1/2 chance of it spreading each tick
Of course also thinking about it fire does have some more in it that just deals with spreading, so some of that may have been related to that.
Edit: I've found modifying the setup can increase the speed a bit.
Change
to
Essentially what you do then is you make it so that each time a block is found then it will spread. More spread at once.
Warning: Don't do quick spreading for flowers. Your world will quickly be overtaken by grass, lilly pads, flowers, bushes, and more grass.
Good to hear