From the Super Mario Wiki
Ads keep the MarioWiki independent and free :)
Super Mario series
Super Mario World
Torpedo Hasshadai first appeared in Super Mario World in only one level, Soda Lake, where they fire Torpedo Teds that are invincible to all available forms of attack, making the level tricky to traverse.
Super Mario Galaxy
Torpedo Hasshadai (generically referred to as torpedo tubes by Prima Games) also appear in Super Mario Galaxy, where they sport a different design. They are most often found in the water, and now can be destroyed by leading a Torpedo Ted right back at them.
New Super Mario Bros. U / New Super Luigi U
Torpedo Hasshadai, as well as the Torpedo Teds, return in the Wii U game, New Super Mario Bros. U. They behave and look exactly as they do in Super Mario World, and appear in Larry's Torpedo Castle; they are once again invincible. Targeting Teds and Search Torpedo Hasshadai debut in The Mighty Cannonship level, being both obstacles and weapons that appear in the fight with Bowser Jr. While Torpedo Teds reappear in New Super Luigi U, the Torpedo Hasshadai do not.
Super Princess Peach
Torpedo Hasshadai return alongside the Torpedo Teds in the game Super Princess Peach, where they are invincible.
Mario Party 10
Names in other languages