Jump to content

Recommended Posts

Posted

So, I currently have a bow item. However when holding it, it doesn't look like a bow but holds on a weird angle, and appears small. I also don't know how to make it fire faster, as changing the maxuseduration doesn't seem to adjust anything, even if I change the visuals too.

 

My bow class-

 

 

  Reveal hidden contents

 

Posted

setFull3D() to make the item be held upright and larger (like swords, tools, bows, etc.).

 

The length of time required to reach full charge is determined by the equation in onPlayerStoppedUsing:

// the denominator is how long it takes, in ticks, to reach maximum strength
// 20.0F means you need to charge for 20 ticks (1 second)
float f = (float) j / 20.0F;
f = (f * f + f * 2.0F) / 3.0F;

 

Of course, you will want to change your icons to match whatever timing you decide upon.

Posted
  On 5/5/2014 at 12:34 AM, coolAlias said:

setFull3D() to make the item be held upright and larger (like swords, tools, bows, etc.).

 

The length of time required to reach full charge is determined by the equation in onPlayerStoppedUsing:

// the denominator is how long it takes, in ticks, to reach maximum strength
// 20.0F means you need to charge for 20 ticks (1 second)
float f = (float) j / 20.0F;
f = (f * f + f * 2.0F) / 3.0F;

 

Of course, you will want to change your icons to match whatever timing you decide upon.

Helped a lot. Would you happen to know how I can get the zooming in visual effect that the normal bow has when it is charged?

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.