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

I am working on a mod that add's some armor stands and some special functionality with them. I know there are other mods that add armor stands and have figured out how to render the armor on top of the stands, and I have asked some of them if they would share their method for rendering the armor but I haven't gotten a response yet.

 

So my question is this: Can someone point me to an example that I could look at the code for, explain how to if you know?

 

How I am currently trying to get this to work:

I have a blockcontainer with a TE that has its own renderer. The stand renders properly.

To render the armor I am working on creating a "Ghost player" that is invisible but would "wear" the armor and be in the same position as the stand, so the armor gets rendered in that position.

 

^this doesn't seem like an even moderately decent way of implementing it but I haven't found any useful information yet and this is my solution until I do.

 

mod description for those curious:

http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/requests-ideas-for-mods/2498910-armerger

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

If you already have a decompiled version of forge 1.8 set up then you should take a look at client/renderer/entity/ArmorStandRenderer.class

It shouldn't have changed that much since 1.7

 

Otherwise there are some things in 1.7 client/renderer/entity/RenderPlayer.class you might take a look at.

 

Good luck!

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

  • Author

I haven't looked at 1.8 yet, are the render classes more or less handled the same? Do I set up the environment the same way as 7 just with the new forge version?

 

And I'll take a look at that and see if I can make sense of it.

 

Still questioning the GhostPlayer setup, if someone has a better one they can suggest I welcome it.

 

Also edited in a link to the mod description if anyone is curious what extra functionality means.

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

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.