[1.21.5] Custom Model Data updated, i dont know how to fix it

Apparently they changed how custom model data works, i dont know how. I want to give the item a custom texture based on the ID of custom model data, but it has changed. { "parent": "item/generated", "textures": { "layer0": "item/carrot_on_a_stick" }, "overrides": [ { "predicate": { "custom_model_data": 1.0 }, "model": "item/apple" }, { "predicate": { "custom_model_data": 2.0 }, "model": "item/goldenapple" } ] } /give @p minecraft:carrot_on_a_stick{CustomModelData:1}

Continue to help post