Fix custom model data for 1.21.6+ - #36
Conversation
|
I see, yeah looking back at it, it's the way I made my resourcepack that is different from your example. Before on 1.21.1 and prior, both were written in the same way, but now my which uses float/int instead of strings like in your example. |
|
I will look in the coming week to see if I can support both resource pack definitions. Could also stem from a documentation issue, as I think the current wiki lacks updates on the 1.21.3+ situation. It's completely valid that people might not know. Thanks for bringing it up! |


Description
Fixed the plugin for 1.21.6+ version with the new custom model data changes made by Mojang. Has been tested on dev & public servers.
Type of change
How Has This Been Tested?
Tested on paper-1.21.6-48 server
Checklist:
Additional Notes
These changes won't support your previous versions, up to you on how you want to manage this with your version conditions or simply splitting into different builds/branches. I saw your CustomModelData class with conditions on the mc version, but I don't want to mess up anything there, so I'm just showing the solution for recent versions.