What is the difference between past perfect tense and past perfect continuous tense?
The continuous tense indicates a lasting action.
Past perfect tense indicates only the time when action took place, while Past perfext continuous informs that the action took time. It is often used with time words like for or since.
The ground is wet. It had been raining for 3 hours.