Jump to content

Recommended Posts

Posted

Just realized I forgot the code!

Here it is:

 

  Reveal hidden contents

 

Posted

i havent done this myself, but just looking at the code you should look at this method

 

/**
     * returns the action that specifies what animation to play when the items is being used
     */
    public EnumAction getItemUseAction(ItemStack par1ItemStack)
    {
    	return EnumAction.bow;
    }

 

you should probably make a custom EnumAction with your bow in :)

Posted

you can always do it a different way, have a play around with it

 

for example, if youre not bothered about durability, make it add damage stuff while using it, then set the texture based on damage values. but remember to set the damage back to 0 when released

Posted
  On 7/9/2012 at 11:11 AM, jasonw749 said:

you can always do it a different way, have a play around with it

 

for example, if youre not bothered about durability, make it add damage stuff while using it, then set the texture based on damage values. but remember to set the damage back to 0 when released

I have done that the problem is it doesn't act like the vanilla bow where the surroundings get streched abit and the player holds it like a bow

Posted

You could use the usage length aware version of getIconIndex.. just sayin...

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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