How to detect right click with ranged item

Started by Rizul Vyas on

Topic category: Help with modding (Java Edition)

Last seen on 15:54, 16. Sep 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect right click with ranged item

So I am making a sniper gun as a ranged weapon and I need to add a zoom feature to the gun where when you right click with the sniper it zooms in kind of like the spyglass and I also need help to make the bullets fly straight instead of curving like an arrow. Thanks

Last seen on 17:00, 27. Mar 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well increasing the bullet…
Wed, 06/16/2021 - 22:13

Well increasing the bullet power will make it go faster and straighter, but when it comes to the zoom feature you could use this plugin: https://mcreator.net/plugin/71402/fly-procedures which will allow you to set the player POV and you could possibly even add a overlay.