How to detect right click with ranged item

Started by Rizul Vyas on Wed, 06/09/2021 - 06:03

Topic category: Help with modding (Java Edition)

Last seen on 09:54, 14. Jun 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to detect right click with ranged item
Wed, 06/09/2021 - 06:03

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 16:01, 28. Jul 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.