Gold is only ever a random rare drop. Like for killing a boss, in a chest, or mining something else. I think there is some mod that has a mine that gives a bit of gold, but that is the best you can do. You can get goldstone to refine into gold bars rarely from mining obsidian nodes as well. Probably the best way to get .