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

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?

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!

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!

See my Rendering a 3D item after thrown thread. We figured this out for 1.5. You can probably adapt the code i posted to 1.6.4

  • Author

Alright, thanks for the help guys. I am copying the code for the arrow, but how might I get to the reference called "arrow"? Would you recommend a tutorial?

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

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.