Shoot arrow event

Started by CreeperJeepers on Mon, 04/17/2017 - 15:19

Topic category: Advanced modding

Last seen on 08:07, 16. Jul 2019
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Shoot arrow event
Mon, 04/17/2017 - 15:19

I made a spear in my mod that shoots arrows, which deal damage, when right-clicked in the air. However, the arrows always fire in the same direction (i.e. south) and I don't know how I can make it work like a bow (i.e. fire in the direction the player is facing). Thanks in advance.

Last seen on 04:28, 22. Aug 2019
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
you could do an item switch
Sat, 04/29/2017 - 06:54

you could do an item switch on right click from gun mode to melee mode and make a gun and sword item and give them the same texture.