This might be a really stupid idea, but basically, I am trying to make an item that when a variable changes, it will change the item from a normal item into a sword. I am basing it off of the Percy Jackson series, where the main character has a pen that transforms into a sword. In past versions of the mod I have made, I've had to make a very convoluted system that would basically remove the original item from the player's inventory, and then add the new one in. This time, I am trying to make it so when the variable changes, it doesn't actually switch out the item but literally changes the model and the attributes of the item. Sadly, nothing I know how to do is working. I would appreciate any help I could get. Thanks!
I've taken out some of the code, cause I don't want you guys to have all my secrets.
Also, inside ModItems.java, I have made my tests comments, so you can see what I have tried and let me know what I'm doing wrong.