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.

[SOLVED] [1.16.5] EntityRenderManager NullPointerException: Unexpected Error

Featured Replies

Posted

Hello,

I've been trying to mod multiple entities (in this case mobs) into the game. After initially having quite a bit of trouble with the new syntax (last time I wrote a Forge mod was in 1.8) I started to look into existing mods in order to figure things out.

I actually managed to get a single entity to work properly with some mostly copy-pasted code, but after adding a second one, upon trying to summon it, the EntityRenderManager crashed the game with the crash report description that is in the title.

I since rewrote a lot of code because after searching through a bunch of forums it turned out the code I had earlier had a bunch of depreciated stuff in it, but now after the rewrite I still get the same crash but now with both entites (a.k.a. none of them work now).

The full crash report is as follows: https://pastebin.com/0eRdCCxM

My code:

Main Class: https://pastebin.com/6E8nVpqP

Rendering Registries: https://pastebin.com/jn2yx69c

Entity Registries and Attribute Init: https://pastebin.com/zyrtsLeb

Renderer Classes (both are pretty much the same): https://pastebin.com/7wgdSbJN

Edited by TheUltimateEngine
solved

  • TheUltimateEngine changed the title to [SOLVED] [1.16.5] EntityRenderManager NullPointerException: Unexpected Error

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.