Seek not after riches nor the vain things of this world; for behold, you cannot carry them with you.
What does Alma mean when he says that? I think that there are a few meanings.
First, they probably just can’t carry them with them. They might not have room to bring treasure. When Nephi and his family left Jerusalem, they probably knew that they weren’t staying in the area, so they probably brought a lot. But they didn’t have room for their treasure. Alma and his sons were just going on a little mission. I don’t think they brought much at all!
Second, you can’t take vain things to heaven.
Who shall ascend into the hill of the Lord? or who shall stand in his holy place?
He that hath clean hands, and a pure heart; who hath not lifted up his soul unto vanity, nor sworn deceitfully.
So, if Corianton wanted to go to heaven, he would have to stop carrying vain things around.