Geckolib-forge-1.19-3.1.40.jar May 2026
@Override public AnimationFactory getFactory() return this.factory;
public MyMobEntity(EntityType<? extends PathfinderMob> type, Level world) super(type, world); geckolib-forge-1.19-3.1.40.jar
Item Class public class MagicStaffItem extends Item implements IAnimatable private AnimationFactory factory = new AnimationFactory(this); public MagicStaffItem(Properties properties) super(properties); @Override public AnimationFactory getFactory() return this
@Override public ResourceLocation getAnimationFileLocation(MyMobEntity object) return new ResourceLocation("yourmodid", "animations/mymob.animation.json"); ? extends PathfinderMob>
// In your main mod class public static final EntityType<MyMobEntity> MY_MOB = Registry.register( Registry.ENTITY_TYPE, new ResourceLocation("yourmodid", "my_mob"), EntityType.Builder.of(MyMobEntity::new, MobCategory.CREATURE) .sized(0.9f, 1.3f) .build("my_mob") ); // Client setup @Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class ClientEvents @SubscribeEvent public static void registerRenderers(EntityRenderersEvent.RegisterRenderers event) event.registerEntityRenderer(MY_MOB, MyMobRenderer::new);
@Override public AnimationFactory getFactory() return factory;