Yeah but this way has a minimum value now, for instance:
public class ChemRack extends Block
{
public ChemRack (int id, Material material)
{
super(id, material);
}
@Override
public void onBlockAdded(World world, int x, int y, int z) {
world.scheduleBlockUpdate(x, y, z, this.blockID, this.tickRate(world));
}
@Override
public int tickRate(World par1World)
{
Random random = new Random();
return 4000+random.nextInt(2000);
}
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
par1World.setBlock(par2, par3, par4, Block.dirt.blockID);
}
}
has a minimum tick value of 4000, and a maximum of 6000, you can adjust to what you'd like.
I was under the assumption that the tick value of 6000 worked fine, and adding the random integer made it go haywire, which is why I had you try the other way. this is much more reliable.