Jump to content

Modded Bow and Arrow


N3XTGEN

Recommended Posts

I created a modded bow and arrow and it works, except the arrow is invisible when I shoot it. Did I put the textures in the wrong place? How do I fix it?

Also is there a point in having a modded arrow. If the bow does the damage why make a custom arrow? And sorry how do you change the damage the bow (or arrow) does?

 

Thanks

Github - 

Link to comment
Share on other sites

I'm afraid I don't know much about modeling/rendering, so I'll let someone else take care of that one.

As for the others...

3 hours ago, N3XTGEN said:

Also is there a point in having a modded arrow.

If you want the arrow to look different, or have special effects that aren't achievable with the normal arrow, then yes. Otherwise, probably not.

3 hours ago, N3XTGEN said:

how do you change the damage

The damage, as well as other statistics, are properties of EntityArrow. In the normal bow, these properties are set by ItemBow during the onPlayerStoppedUsing() method. You can set the damage of the EntityArrow with EntityArrow#setDamage(). For more information and examples, you should look at the ItemBow/EntityArrow classes.

  • Like 1

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

Link to comment
Share on other sites

5 hours ago, N3XTGEN said:

I created a modded bow and arrow and it works, except the arrow is invisible when I shoot it. Did I put the textures in the wrong place? How do I fix it?

Also is there a point in having a modded arrow. If the bow does the damage why make a custom arrow? And sorry how do you change the damage the bow (or arrow) does?

 

Thanks

Github - 

If you are talking about the arrow's damage to entity and your custom arrow extends entityarrow I think you just simply set the damage in the constructor. If not you use 

attackEntityFrom(damagesource, damage)

 

Edited by poopoodice
  • Like 1
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.