Wyverns will only spawn when the player is above a certain altitude (see Space § Notes) and is outside of the Crimson, Corruption, and Dungeon biomes. Wyverns will not spawn during events, and having at least one NPC near the player will also prevent them from spawning.