Jump to content

How would I go about creating an entity with the same model as the player?


thomask

Recommended Posts

Hello, I'd like some pointers on how to go about creating an entity with the model of a player. I want it to have my custom texture, which is just a normal player skin.

I was thinking that for my renderer class, I could extend LivingRenderer because PlayerRenderer does, override getEntityTexture to have the skin i want to use, and then copy over the relevant code from PlayerRenderer, but it doesnt seem like that'll work.

As for my model class, should I even make my own? Or can I just use PlayerModel? 

Any guidance would be appreciated, thank you

 

Edited by thomask
Link to comment
Share on other sites

Since you are using a texture, almost everything within PlayerRenderer is worthless to you. You could literally just replicate SkeletonRenderer or some other BipedRenderer and be fine with it. As for PlayerModel, it depends on what you are trying to do with it. If you are using any of the overlay layer on the skin, you probably will need to use PlayerModel. Else, you can just get away with BipedModel and going from there.

  • Thanks 1
Link to comment
Share on other sites

2 hours ago, ChampionAsh5357 said:

Since you are using a texture, almost everything within PlayerRenderer is worthless to you. You could literally just replicate SkeletonRenderer or some other BipedRenderer and be fine with it. As for PlayerModel, it depends on what you are trying to do with it. If you are using any of the overlay layer on the skin, you probably will need to use PlayerModel. Else, you can just get away with BipedModel and going from there.

Thanks for your advice! I ended up using a PlayerModel as I needed the outer skin thing, and for my Renderer i used BipedRenderer. Cheers

Link to comment
Share on other sites

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.