Hey guys! It's AtlantiaKing11NL here and i'm gonna explain you how to fix the item.gunname.name bug!
So, you start like always with making a gun and the mod is called Gun. Then you test and see! OH NO? item.gun.name!?
How do you fix it?
1. Quit Minecraft
2. Click on the gun mod
3. Open course
4. Search for setUnlocalizedName("gun");
5. Replace ("gun") in ("Gun")
6. Save, Build, Test
8. It works
I hope this works to you! I saw many people where asking it!