The Pirate's Revenge

In the book the pirate's revenge theirs a girl who has a dream. In her dream she meets her great great great great great grandpa Joan Smith who gives her a blue rock. She sees the rock when she wakes up. Everything bad was happening and it had something to do with the rock.

I read the book the mouse and the motorcycle and it is about