Adjust course of arrow with enchantments

Started by tictuctoe on Sat, 08/06/2022 - 05:27

Topic category: Help with modding (Java Edition)

Last seen on 00:02, 7. Aug 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Adjust course of arrow with enchantments
Sat, 08/06/2022 - 05:29 (edited)

Hi, I am looking to create an enchantment for crossbows called "sniping" that causes an arrow to fly perfectly straight. I was also hoping I could create a trade-off to balance this enchantment where the crossbow takes longer to load, but has more accuracy and power. I have been doing research on how to create a similar effect, but have found nothing. The closest thing that I have found though is to create a custom crossbow that has more power and flies farther, but this will only go so far, and I do not like the extra weapon. Can I have some help?

Edited by tictuctoe on Sat, 08/06/2022 - 05:29
Last seen on 20:21, 12. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think you could do this by…
Sun, 08/07/2022 - 20:03

I think you could do this by checking whether you have the enchantment and then turning the arrow entity gravity off through procedures and see it go straight.