I'm fairly certain this is a sci-fi book, not a movie. On an alien planet, a person discovers that these "bugs" (if memory serves that are the size of say turtles...) burrow and dig through rock, eating it along the way. As a byproduct of this, they produce gems/jewels inside their bodies. One of the humans tries to collect as many of these jewels as he can by capturing these creatures and harvesting the gems.
I also seem to recall that the people teleported to this planet in some manner.
I know it's thin; not much to go on. Any help would be appreciated.