Terraria item ID 1831. Terraria 1.4.5.7.
The Spooky Twig is a Hardmode, post-Plantera crafting material used solely for crafting Spooky Wings. It is dropped by the Mourning Wood during the Pumpkin Moon event with a 2.86โ20% (5โ20%) chance depending on the current wave.
Description from the Terraria Wiki.