Jump to content

[1.15.2] Help with animating player model


GarlicBread

Recommended Posts

Hey, I want to make a rideable block, like a chair, but with a custom player model. I've tried looking at the elytra code but my mappings seem to make it difficult. It would be nice if someone could help point me in the right direction, since I don't see any api such as obfuscate or animated player for 1.15.2.

 

Edit: changed wording to be more understandable.

Edited by GarlicBread
Link to comment
Share on other sites

5 minutes ago, GarlicBread said:

Is it possible to edit limb rotation using forge methods, or do I have to make a new model?

Depends on what exactly you want to do. Each Model is made of a collection of ModelRenderers each are a rectangular prism and have their own rotations. So yes you can rotate each "limb". But those limbs are strictly speaking limited. IE for a player a leg is one limb you can't bend it in the middle.

 

10 minutes ago, GarlicBread said:

If I have to make a new model, how would you recommend going about doing so?

Honestly just write the Model class yourself. But if you really need to use a program(visual way) there are plenty out there.

 

Also you should use the RenderPlayerEvent. Events are documented here. What you want to do is cancel the event and render your own model under the circumstances that it should be rendered IE.
if (playerIsSitting()) {

  // Cancel Event

  // Render Sitting Player

}

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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.