How to not catch on fire in Minecraft?

I'm working on an adventure map in Minecraft, and I need to make it so that a set of armor will make you completely invulnerable to lava. That means you can't catch on fire or take any damage whatsoever. How do I do this? Is there an enchantment, or do I need to do some coding?

There's fireprotection but that sucks but there's a potion of fire resistance… I think (sorry haven't played in a while) and that makes u completely immune to lava and fire

I wouldn't use armor. Best thing to do is use a potion of fire resistance. With armor it would just eat through the armor and you would still take damage, even with fire protection.