The repository is designed to shield plant seeds and preserve crop diversity in the event of disaster such as climate change , epidemic or nuclear war .