Jump to content

Recommended Posts

Posted

Okay, I've just recently started using Forge and am currently trying to add my own custom arrow without the modification of any base files, as I understand it - this should be possible with the use of IArrowNockHandler and IArrowLooseHandler, I understand that the NockHandler is when you use the bow(Nock the arrow, duh) and Loose when you fire, or have I got this all wrong?

 

Either way, I've played around with it for a while with a friend of mine who's really good at programming(Although in other languages), but we really can't get any further. The problem is that when we use the Bow and fire my custom arrow with it(Haven't added the Nock yet.) it still shoots the white arrow.

 

I've made my own 32x32 Pixel PNG Texture for it to use.

 

In my mod_ file I've got this;

 

 

  Reveal hidden contents

 

 

EntityOlivineArrow;

 

 

  Reveal hidden contents

 

 

RenderOlivineArrow

 

 

  Reveal hidden contents

 

 

ItemOlivineArrow;

 

 

  Reveal hidden contents

 

 

Am I missing something? We tried to up the size and damage of the arrow to ridiculous amounts(20D instead of 2D, 1.5F instead of 0.5F) to make sure if it's actually using the original Arrow, and it is.

 

I'd be ever-so-grateful for any help! :)

  • 1 month later...
Posted
  On 5/6/2012 at 5:48 AM, calclavia said:

You need an entity render file. There are tutorials out then on how to render an entity.

 

First, there is a renderer file.

Second, can you show us how to use the IArrowNock and IArrowLoose handers? i would really appreciate it because cant figure out how they work and there is no tutorial on how to use them.

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.