This NPC is an edit of Enjl's Flurret, found here:
https://smbxgame.com/forums/view ... 83#p374383
Enjl has also proven to be amazingly helpful to me in my quest to understand both how Lua works and how Redigit's pasta code works, so they get huge props for that as well!
Ruff Puffs and variants will fly back and forth, and cannot be stomped on- they can be spinjumped on safely, however this will not damage them. All types of Puff will move six blocks forward before turning around, and do not collide with blocks. Each one also has a set of elemental relations to the Fire Flower and Ice Flower.
Ruff Puffs are immune to both fireballs and iceballs, while Ice Puffs and Fire Puffs are immune to their element, and weak to the opposite.
How often they fire varies, and their projectiles have different sizes/move at different speeds.
Ruff Puffs fire the most often and have the smallest, fastest projectile.
Fire Puffs fire at an average rate, and have a large projectile which moves at an average speed.
Ice Puffs fire least often, and have a large projectile which moves the slowest.
Additionally, Fire Puff projectiles are hot and Ice Puff projectiles are cold, allowing them to affect hot and cold blocks.

Mediafire:
http://www.mediafire.com/file/qg6vt5wpx ... f.zip/file
Google Drive:
https://drive.google.com/file/d/12CkUpb ... sp=sharing