Jump to content

[SOLVED] Custom Block - Render model after player Y coordinate


Recommended Posts

Posted

The subject pretty much say it all. Has just begone to work with custom render blocks in minecraft forge when i run in to this bug and now i can't find out what's wrong.

 

[EDIT:] To be clearer on the bug itself... The model is being drawn always on the blocks x and z axis while the y axis follows the heigth of the player for some odd reason.

 

Mod-File

 

  Reveal hidden contents

 

 

Block file

 

  Reveal hidden contents

 

 

Have a TitleEntityA that Extends TitleEntity and is empty.

 

Client Proxy

 

  Reveal hidden contents

 

 

Model class

 

  Reveal hidden contents

 

 

Render class

 

  Reveal hidden contents

 

 

Anyone have a clue of what is wrong? Been looking at the code for hours and even comparde it to other codes i found trought google. :/

 

Regards DND

Posted

renderAscenderModelAt((TileEntityAscender)tileentity, d0,1,d2,f);

There's a typo, you forgot to prepend a 'd' before the 1:

renderAscenderModelAt((TileEntityAscender)tileentity, d0,d1,d2,f);

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

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.