Posted April 4, 20205 yr 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 April 4, 20205 yr by GarlicBread
April 4, 20205 yr Author Yes, but it won't have the same model as say, riding a pig. Is it possible to edit limb rotation using forge methods, or do I have to make a new model? If I have to make a new model, how would you recommend going about doing so?
April 4, 20205 yr 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.
April 4, 20205 yr Author Ah, rotating the models seem to be fit for what I'm doing. Thanks for the guidance!
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.