Jump to content

Recommended Posts

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

Posted

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.

Posted

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

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