Question: what are nanites for in terraria?
Answer: Nanites are a Hardmode crafting material used solely for crafting the Flask of Nanites and Nano Bullets, whose purpose is to inflict the Confused debuff with Ranged or Melee Weapons. Nanites are purchased from the Cyborg for 15 each.