Jump to content

Recommended Posts

Posted (edited)

I have created a custom entity called Chocolate Slime, The bug has occurred since I created it, and stops when I remove it, however I see no reason for the crash, but the crash log says a lot of things that I'm unsure of how it connects.

Crash Log:

  Reveal hidden contents

ChocolateSlime.class:

  Reveal hidden contents

Registration of Class:

  Reveal hidden contents

Main Rendering & Attribute Creation:

  Reveal hidden contents

ChocolateSlimeRenderer.class:

  Reveal hidden contents

 

Edited by tal124
Spoilers
Posted

I'm going to take a guess and say you don't call your init method anywhere. If not, then you need to provide more context for your mod.

Additionally, entity renderers must be registered through `EntityRenderersEvent$RegisterRenderers#registerEntityRenderer`. Also, stick to only one method of subscribing events to the mod bus.

You should never use OnlyIn. This is an annotation specifically for internal use only by Forge.

Posted
  On 9/28/2022 at 3:12 AM, ChampionAsh5357 said:

I'm going to take a guess and say you don't call your init method anywhere. If not, then you need to provide more context for your mod.

Additionally, entity renderers must be registered through `EntityRenderersEvent$RegisterRenderers#registerEntityRenderer`. Also, stick to only one method of subscribing events to the mod bus.

You should never use OnlyIn. This is an annotation specifically for internal use only by Forge.

Expand  

My Init Method is called in my main class, along with all of my other deferred registers.

 

My issue isn't so much that I'm unable to spawn the slime (Im not able too) but that the game CTDs after about 20 seconds of creating a new world, and instantly upon trying to enter it again.

 

I will try the entity renderer method tomorrow, and could you describe the methods of attaching the subscribing events? I've been working on this pretty much on my own, with very little guidance other than source code. So it would be very helpful

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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