Jump to content

Recommended Posts

Posted

I need a hand rendering an item i throw,

I copied the snowball rendering class to use but something isn't working, and i initialized it in preinitialize, sorry for bad spelling I'm mobile.

Posted

diesieben07 im sorry but that was rude, you could have said "please add some code or something and its slightly hard when im using a phone to ask some nice folks for help, but all i get is a screw off message.

Posted

I've never understood people who are asking (not responding) questions from phones. I mean - seriously, what do you expect?

 

I understand that some people are crazy about "finally getting home to code some sick mods", but you can't ask a question and get remotely accurate response without giving code to work with. This is coding, not grammar.

 

Said that - even if you think d7 was rude (he was not, it is called being realistic), we still can't help you directly.

 

If you would google some entity tutorials you would find how to register renderers for proper version, how to learn GL and other stuff - which still - most can be found in vanilla code, especially if you copy it, which you shouldn't do if you don't understand it.

 

Said above - we can't do anything more than say to google basic tutorials, because we don't know what exacly is the problem (no code).

Important points:

* Register render

* Test code for being called

* Experiment, don't render whole thing at once, test for simple drawings if you are even drawing at good pos (in snowball case it should).

 

EDIT

I need a hand rendering an item i throw,

If by this you mean rendering snowball in hand (as entity), then you will need RenderPlayerEvent. You can simply render snowball in correct place, but to do that you would need Entity instance. You can have that entity without spawning it to world, but might get tricky.

 

If you also need hand to be lifted - you will need to cancel whole rendering of player and rerender him with changed hand pos. Use Pre and Post events.

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

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.