Slice the block of tofu in half lengthwise. Then slice it crosswise into ΒΌ-inch (6-7mm) thick pieces. Lightly pat the pieces on both sides with a paper towel.
Prepare sauce by mixing together the light soy sauce, Shaoxing Wine, oyster sauce, white pepper, five spice powder, and water. Set aside.
Heat a large flat-bottomed cast iron or non-stick pan over medium-high heat (if using cast iron, heat until it just starts to smoke; learn why this prevents sticking). Once thoroughly heated, coat the bottom of the pan with oil. Add the tofu slices in a single layer, and pan-fry them for 2 minutes per side, until lightly golden. Do this in batches if needed.
When all the tofu has been pan-fried, add it all to the pan at the same time in a thin layer. Pour half of the beaten eggs evenly over the tofu. Once the egg starts to set at the bottom, flip the tofu pieces and pour the rest of the beaten egg evenly over the other side. Cook until the eggs are set.
Add the sauce mixture along with the minced garlic, white part of the scallions, and chilies, if using. Reduce the heat to medium, cover, and cook for 8-10 minutes.
Uncover, give everything a toss, and reduce the sauce further if needed. Garnish with the chopped green parts of the scallion, and serve.