Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • 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?

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.