Jump to content

Recommended Posts

Posted

Ok, I have been modding and made a short blade, which I would like for people to be able to throw. I got it working, but it won't show it being thrown(In the air) Help?

You're going have to render it.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

There is a reference, called arrow. look how it has been made, copy it, edit it. done.

 

I think no one on this forum will write the code for you, thats your job.

 

And if u want help with your code THEN YOU HAVE TO SHOW IT. srsly is that so hard to understand??

*********************************

**  Always remember you are unique,  **

**  just like everyone else                   **     

**********************************

Was my post helpful? Say thanks and

press the thank you button, on my post!!

God, damn it!

Posted

Here is a tutorial about making a custom projectile. The easiest way is to extend EntityThrowable, since EntityArrow has lots of hard-coded features that won't work for you if you just try to copy them.

 

As for rendering, the simplest yet again is to just register your entity to a new RenderSnowball(yourItem). That will render your item as a thrown object without having to do anything fancy; otherwise you will need to look at a variety of render codes / learn about openGL and figure out how you want your knife to render in the air.

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.