The Nail Gun is a Hardmode, post-Plantera ranged weapon which has a 4% / 6% (1/25 / 3/50) chance to drop from Nailhead during Solar Eclipses. It uses Nails as ammunition, which are sold by both the Merchant and the Arms Dealer when you have the Nail Gun in your inventory for 1 each.
When a nail hits an enemy, it sticks to it. It deals low damage on impact, but explodes after roughly 2 seconds, dealing massive damage. The nails also stick to surfaces and explode in the same manner. The explosion does not damage the shooter. Nails are unaffected by gravity until they have flown roughly 30 blocks, at which point they fly with an arc similar to that of an arrow. If used in PvP, the nails will not stick to players and will instead deal damage somewhere in between the initial damage and the explosion’s damage.
The Nail Gun deals no knockback.
Its best Modifier is Demonic or Deadly, with the latter granting slightly higher DPS at a cost of ammo consumption.