Jump to content

[1.7.10] Make custom bow avoid changes to the vanilla bow by other mods?


Recommended Posts

I recently finished a lovely new bow (extends ItemBow) for my modification. Works wonderful thanks to special coding taken from Battlegear and Zelda Sword Skills.

 

I went to try and use this new bow with my personal "mod pack" map only to find it does not work at all in survival. Apparently, one of the mods I have installed, EnderIO, does something to the ItemBow class that leaves my custom bow, with its custom way to handle ammo based on item damage, unable to work.

 

What can I do about this as I imagine this wouldn't be the only mod this custom bow would have problems with?

 

I've tried creating my own bow and arrow classes rather than extending ItemBow or EntityArrow but then I run into significant rendering bugs.

Link to comment
Share on other sites

Actually, looking at it again, it might not have to do with the bow class. With EnderIO installed, something goes wrong with this line:

 

if (player.capabilities.isCreativeMode || this.getDamage(bow) < this.getMaxDamage() || player.inventory.hasItem(PokemonMDItem.huntersCharge))

 

If I am in creative mode, this seems to go through and the bow acts as should normally. Something happens with:

 

this.getDamage(bow) < this.getMaxDamage()

 

That last Or statement doesn't matter unless the bow's durability (ammo) runs out.

 

Again, when EnderIO is not installed, I don't have problems. The bow performs as expected.

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.

Announcements



×
×
  • Create New...

Important Information

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