How to detect right click with ranged item

Started by Rizul Vyas on

Topic category: Help with Minecraft modding (Java Edition)

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

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.