The book Miners is very similar to the novel you mentioned! The protagonist started off as a miner with a pet that looked like a silkworm. He fed the pet with minerals and gradually became a Pokémon trainer. I recommend you to read Miners. You should like it. I hope you like my recommendation. Muah ~