Posted November 1, 20232 yr Hello there! I'm making a mob mod, but embarrassingly, my first mob crashes the game! Im using Geckolib 3.1.40, MC version 1.19.2, and Forge 43.3.2. Error: Caused by: java.lang.NullPointerException: Cannot invoke "software.bernie.geckolib3.core.manager.AnimationFactory.getOrCreateAnimationData(int)" because the return value of "software.bernie.geckolib3.core.IAnimatable.getFactory()" is null Crash Log Debugged Output I hope I've given enough info!
November 1, 20232 yr Looks like some kind of conflict with joshsmobs - does it work without this mod? Try my Modpack >>Link to Curseforge<<
November 1, 20232 yr java.lang.NullPointerException: Cannot invoke "software.bernie.geckolib3.core.manager.AnimationFactory.getOrCreateAnimationData(int)" because the return value of "software.bernie.geckolib3.core.IAnimatable.getFactory()" is null I am not that familiar with creating mods - the issue refers somewhere to the Animation Try my Modpack >>Link to Curseforge<<
November 1, 20232 yr Can you post the class of the entity that's causing the crash? (And if you can the renderer and model classes too). Sanity is for losers. -Felix
November 1, 20232 yr Author Mob Class and cause line Animation factory was deprecated, i replaced line 28 with this: private AnimationFactory factory = GeckoLibUtil.createFactory(this); Mob Renderer and finally: Mob Model
November 1, 20232 yr You do not return your AnimationFactory in PrairieDogEntity#AnimationFactory @Override public AnimationFactory getFactory() { return null; } Also is there a reason why the AnimationFactory is not final?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.