Topic category: Help with modding (Java Edition)
I want to have my custom weapons model be different when the player holds it than it is in the gui. The trident in vanilla minecraft is a good example of what i want. In the gui its just flat sprite work, but when held by the player it is given it's own 3d model. I would like to know if anyone knows how to recreate this in the mcreator software with custom weapons.
I have already tried looking at the item json models but I found nothing of use. There were no lines saying if the item is in someone's hand use this model instead. I also tried looking at the trident's .java item file in minecraft's source code but found nothing mentioning either json model, or when to use them.
I know they did it somehow, but i am lost on how i could recreate this. I don't want to resort to having a script that changes out the item whenever it is held to recreate this do to that fact that it could cause multiple problems that i'd rather just not deal with.
If you can help, please do. I would appreciate it.