public void tickBlock() throws Exception
	{
		for(int Par1 = 0; Par1 < Blocks.size(); Par1++)
		{
			tempBlock = Blocks.get(Par1);
			
			if(tempBlock.getBounds().intersects(Main.Character.getBounds(Main.Frame.getWidth(), Main.Frame.getHeight())))
			{
				if(tempBlock.getName() == "closedChest")
				{
					SoundManager.playSound("Chest.wav");

					addBlock(new Block(2, 1, tempBlock.getX(), tempBlock.getY(), Main.Instance, "openChest"));

					for(int Par2 = RandomGenerator.randomNumber(1, 3); Par2 > 0; Par2--)
					{
						addItem(new Item(2, 1, tempBlock.getX() + 10 + RandomGenerator.randomNumber(-32, 32), tempBlock.getY() + 10 + RandomGenerator.randomNumber(-32, 32), Main.Instance, "Coin"));
					}

					for(int Par2 = RandomGenerator.randomNumber(0, 1); Par2 > 0; Par2--)
					{
						addItem(new Item(3, 1, tempBlock.getX() + 10 + RandomGenerator.randomNumber(-32, 32), tempBlock.getY() + 10 + RandomGenerator.randomNumber(-32, 32), Main.Instance, "Potion"));
					}
					
					for(int Par2 = RandomGenerator.randomNumber(0, 1); Par2 > 0; Par2--)
					{
						addItem(new Item(1, 1, tempBlock.getX() + 10 + RandomGenerator.randomNumber(-32, 32), tempBlock.getY() + 10 + RandomGenerator.randomNumber(-32, 32), Main.Instance, "Heart"));
					}
					
					removeBlock(Par1);
				}
				
				if(tempBlock.getName() == "woodenFloor")
				{
					tempBlock.isSolid = false;
				}
			}
			
			tempBlock.tick();	
		}
	}