Create a new class that extends GeoModel, then implement all the required methods:
publicclassExampleArmorModelextendsGeoModel<ExampleItem> {// Models must be stored in assets/<modid>/geo with subfolders supported inside the geo folderprivatestaticfinalResourceLocation model =newResourceLocation("yournamespace","geo/yourmodel.geo.json");// Textures must be stored in assets/<modid>/textures with subfolders supported inside the textures folder private static final ResourceLocation texture = new ResourceLocation("yournamespace", "textures/<modeltype>/yourtexture.png");
// Animations must be stored in assets/<modid>/animations with subfolders supported inside the animations folder private static final ResourceLocation animation = new ResourceLocation("yournamespace", "animations/youranimation.animation.json");
@OverridepublicResourceLocationgetModelResource(ExampleItem object) {returnthis.model; } @OverridepublicResourceLocationgetTextureResource(ExampleItem object) {returnthis.texture; } @OverridepublicResourceLocationgetAnimationResource(ExampleItem object) {returnthis.animation; }}
Creating the renderer class
Create a class that extends GeoArmorRenderer, then just set it like so: