Jump to content

Recommended Posts

Posted

Depends on if you want the "drawing" animation or not. Either as Failender said with a bow which will have the animation or by making a normal sword and overriding onItemRightClick and make it spawn an arrow on right click to fire without an animation

Developing the Spiral Power Mod .

こんにちは!お元気ですか?

Posted

Depends on if you want the "drawing" animation or not. Either as Failender said with a bow which will have the animation or by making a normal sword and overriding onItemRightClick and make it spawn an arrow on right click to fire without an animation

 

Where would I override this? Nothing ever works for me or I'm just completely stupid so I'm gonna need a little help on this one.

Posted

In your item class. You'll have to create a new item class and extend either sword or bow... or item.

 

 

Yep it's Item#getDamageVsEntity—at least it's the same in 1.7.10 anyway.

Developing the Spiral Power Mod .

こんにちは!お元気ですか?

Posted

In your item class. You'll have to create a new item class and extend either sword or bow... or item.

 

 

Yep it's Item#getDamageVsEntity—at least it's the same in 1.7.10 anyway.

I can't figure this out. I'll just wait for someone else to do it and copy what they do. I need to get better at coding

Posted

making items is simple, easy and there are tons of tutorials about it.

 

so, once you've followed a tutorial that has you making a class for your item, make it extend the bow, this will practically make it a bow clone, so then you override the method said by another user to make it deal damage on left click as well.

 

tbh this seems like a pretty simple task, just search for the right tutorials/guides, and use some imagination :)

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.