public void decorateChunk(WorldChunk chunk, World w, Random rand) 
	{
		for(int gen = 0 ; gen < genLoops ; gen++)
        {
            int width = rand.nextInt(16);
            int height = rand.nextInt(maxHeight-minHeight)+minHeight;
            
            for(int i = 0 ; i < rand.nextInt(size) ; i++)
            {               
                int width1 = width + rand.nextInt(6) - 3;
                int height1 = height + rand.nextInt(6) - 3;
                
                if(width1 < 0)
                {
                    width1 = 0;
                }
                
                if(height1 < minHeight)
                {
                    height1 = minHeight;
                }
                
                if(width1 >= 16)
                {
                    width1 = 15;
                }
                
                if(height1 >= maxHeight)
                {
                    height1 = maxHeight;
                }
                
                if(chunk.getBlock(width1, height1).equals("rock"))
                {
                    w.setBlock(chunk.chunkID * 16 + width1, height1, ore);
                }
            }
        }
	}