bit of a late join from me but the zones the mushrooms respawn are fixed and set as XYZ coordinates and not certain blocks (you can toggle seeing them with Shift+M i believe) they're called Mycelium in commands and you can terraform in them and still get spawns but they're only 2-3 blocks tall so if you place dirt lower or higher than that they will have no eligible blocks to spawn