Started by
Gabriele007
on
Topic category: Help with Minecraft modding (Java Edition)
Can someone teach me how to change fov using code? I saw i can use the FOVUpdateEvent but i'm having trouble using it. For the contex, I want to do a keybind that checks if i have a sniper in my hand, and if so it changes the fov.
Don't use Better procedure s. It simply causes more problems and crashes.
Yeah i tried that and got many error while building, so the only way is to use FOVUpdateEvent
I found this on the forge website
So i finally managed to change fov but the problem is that the modifier is always "active", it ignores my conditions, here is my code: