tModLoader Detecting what ore(s) generated in WorldGen

Ahndrek Li'Cyri

Skeletron Prime
Hello!
I have a bit of a odd question.
I was wondering if it's possible to, after the World Gen step that spawn the vanilla ores, to check and see if certain ores generated.
Ex: Detecting if Copper or Tin ore generated

Was just curious to see if this was possible to do. Thanks!
 
WorldGen.CopperTierOre will be set to either TileID.Copper or TileID.Tin when the world begins generating (the very first "Reset" step that clears the world). The same goes for Iron, Silver, and Gold for their respective ores. It isn't saved, though, so anything you do with it has to be during worldgen.
 
Top Bottom