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

Hi guys !

Well, i look everywhere, but i didn't find anything who can help me with this problem.

 

I would like to know if this is possible to add new animation/movement to the ModelPlayer, like dance animation, or sitting in the lotus's posture.

 

I think i should do something with  the RenderPlayerEvent, but I don't know how to do whith this event. Maybe i need to  create my own model and replace the old ?

I don't know very well how it work ;)

 

I'm looking for some wise advice.

Thanks for reading (and sorry for my bad English  ;D')

Yes, use this event. Notice this event has sub-events, Pre and Post.

Basically what you want to do is to make some server-side action, that on "do this action" will send packet to all clients to launch RenderPlayerEvent.Pre and cancel standard rendering - you will have to remove parts of body you want to animate, you can also remove whole model and add everything from scratch, and then re-add them in RenderPlayerEvent.Post and animate your way.

 

To store custom values like isDancing boolean use IExtendedEntityProperties (and there operate with packets said before).

 

Unless you want it to be just client side, but then others won't see it.

1.7.10 is no longer supported by forge, you are on your own.

  • Author

Thanks for your fast answer !

 

I will try on my own to do something like you said, and make a new model.

I already use IExtendedEntityProperties to store some useful informations, so no worries about that ;)

 

Cric craaaaack ! Let's go !

 

ps: Thanks a lot ;)

  • Author

I forgot to ask you, it is possible, when i'm trying rendering with this event, having a compatibility with other mod who customize the modelPlayer too ?

 

In most cases Forge makes everything compatible, but I don't think (and don't know really) if rendering is one of them.

 

I think that up to the point you are making something render on top of vanilla model all mods that do the same will work (like 2 differend armour-mods would actually work together when rendering armour parts). But when you are making a Troll Model from Human (Steve) then, well... just think.

 

Only way to keep everything together would be writing an API that you would have to personally hook into other mods, or other way around. And that's what PlayerAPI does (have look at it).

I used it a very damn long time ago (like 1.3 or so, and was able to make different player model for Smart Moving mod, but thats super old, before events even existed, before anything regarding advanced rendering existed).

1.7.10 is no longer supported by forge, you are on your own.

  • Author

Aaaaaw  ok ok

 

I thought that, yes , i should certainly  use an Api... but i don't how to mod with these.. thing (exept forge of course ;) )

 

I will look at this, but i would like to do this without an other Api...

 

But thanks for your answer, it's very friendly to have some good advice !

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.