Let w be a morphic word over a finite alphabet Σ, and let ∆ be a nonempty subset of Σ. We study the behavior of maximal blocks consisting only of letters from ∆ in w, and prove the following: let (i k , j k ) denote the starting and ending positions, respectively, of the k'th maximal ∆-block in w. Then lim sup k→∞ (j k /i k ) is algebraic if w is morphic, and rational if w is automatic. As a result, we show that the same conclusion holds if (i k , j k ) are the starting and ending positions of the k'th maximal zero 1 block, and, more generally, of the k'th maximal x-block, where x is an arbitrary word. This enables us to draw conclusions about the irrationality exponent of automatic and morphic numbers. In particular, we show that the irrationality exponent of automatic (resp., morphic) numbers belonging to a certain class that we define is rational (resp., algebraic).