Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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!

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

spacer.png

>>Link to Curseforge<<

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.