custom item

Hi, i want to create a custom item, so i have a texture and i would like to apply it on a special compass how do i do that ?

{
    "parent": "minecraft:item/generated",
    "textures": {
        "layer0": "minecraft:item/compass"
    },
    "overrides": [
        {"predicate":{"custom_model_data": 10}, "model": "jsp"}
    ]
}

All the compass of the game became a purple and black cube

Continue to help post