Jump to content

Recommended Posts

Posted

I've made a custom layer for the player but its not showing in game.

Here is my model class

  Reveal hidden contents

Here is my Layer class

  Reveal hidden contents

And the registry in the main class 

  Reveal hidden contents

 

What have I done wrong?

Posted

Update: I found one issue. I was not registering to ModEventBus but now I get:

  Reveal hidden contents

What do I do about this?

Posted

Ok so I need getParentModel().copyPropertiesTo(suitModel);

And I ran to game to see no change.

 

looking back at the armor layer code I saw the copyPropertiesTo was in HumanoidModel

So I made my model extend HumanoidModel instead of AgeableListModel and I added:

  Reveal hidden contents

but now the game won't run and I'm getting

Description: Rendering overlay

net.minecraftforge.fml.ModLoadingException: TestMod (test) encountered an error during the done event phase
§7java.util.NoSuchElementException: Can't find part head

 

What have I done wrong?

Posted

I assume by the stacktrace you mean this:

  Reveal hidden contents

If I am incorrect just tell me.

Also I have made changes to my code.

Posted

Ok Here is the Updated Code:

The Model Class:

  Reveal hidden contents

My Renderer class:

  Reveal hidden contents

And the updated Main Class:

  Reveal hidden contents

Also, I realized that the Main Class Events shouldn't be static and now the game runs but the model isn't rendering.

  • 3 weeks later...
  • UserMC123 changed the title to SOLVED [1.17.1] Custom player layer not rendering.

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.