How to change the FOV of a player when a keybinding is clicked?

Started by QB on

Topic category: Help with modding (Java Edition)

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change the FOV of a player when a keybinding is clicked?

So I wanted to make a scope aiming system. The first thing that pop up in my mind is to change the FOV with a custom GUI. I don't know how to change the FOV and I don't know if it is possible or not. Help me please, thank you!

Last seen on 03:12, 31. Jul 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only way I can think to…
Sat, 06/06/2020 - 01:28

The only way I can think to do it is to give the player a super strong slowness effect but then the player wouldn't be able to move.

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
or speed
Sat, 06/06/2020 - 05:14

or speed

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, thanks for the help…
Sat, 06/06/2020 - 14:59

Alright, thanks for the help, guys! :D

Last seen on 21:55, 16. Oct 2022
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, a way to get speed but…
Wed, 06/10/2020 - 00:13

Also, a way to get speed but be slow is to put them in a cobweb.