Oh, yes the rare and enigmatic truffle worms used to summon that flying aquatic christmas ham from the sea! Those worms are very hard to come by require the mushroom cavern biome to appear! With alot of time and terraforming, I managed to make myself a vast truffle worm farm where they would spawn in very high numbers and I have those stashed safely away by the dozens!
You just need to make alot of aerial platforms with passable gaps, lots of water candles to increase the spawn rate of enemies and worms in the area to further allow you to efficiently harvest those worms! I'll recommend using the golden net to catch em due to it's much longer reach and faster catching speed!
Just good luck if you managed to make a farm right next to a crimson, corrupt or a hollow converted areas where you might run into hollow, corrupt or crimson mimics that'll just tear you apart if you accidentally manage to get too close to them without being properly prepared!