Pinecone fishes live in ledges and caves , rocky and coral reefs over a hard bottom . Pinecone fishes stick to the sublittoral zone , and are associated with ledges and caves , rocky and ( occasionally ) coral reefs over a hard bottom .