Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

K3YD0N

Members
  • Joined

  • Last visited

  1. Managed to figure it out. Just incase anyone finds this thread from google and needs it: if (player.isPotionActive(MobEffects.SPEED))
  2. Does anyone know the forge event for 1.11.2 that checks if the player is sprinting or not? Thanks
  3. Yeah no shit, The problem is I can't figure out what I did wrong, hence why I'm posting here.
  4. The error suggestion is to change isPotionActive to isPotionApplicable The only problem is that isPotionApplicable has its own error with the only suggestion to change it to isPotionActive. Yes I figured it would crash since it had errors, but I was hoping the crash report would help me figure something out.
  5. @SubscribeEvent public void onFOVUpdate(FOVUpdateEvent event) { EntityPlayer player = event.getEntity(); float fov = 1.0F; if (player.isPotionActive(1)) { event.setNewfov(1.0f); } if (player.isPotionActive(2)) { event.setNewfov(1.0f); } } I think I fixed the Syntax errors, however it still crashes every time I load into a world, Is this code wrong: EntityPlayer player = event.getEntity();
  6. I'm new to modding and I'm mainly just trying to update a mod I used that has not been updated to 1.11.2, I want to be able to remove the fov change you get from speed/slowness potion effects. (YES I KNOW ABOUT OPTIFINE DYNAMIC FOV, I don't want it to effect sprinting or bows though.) I am mainly having trouble figuring out how to tell if a player has a status effect (IE, speed or slowness). I have tried quite a few things and tried to look this up everywhere but it all must be for different versions or something because I keep getting errors. (I'm using eclipse but if you know how to do this in another lang I would prob switch to that) Here is my current code, if it helps you understand what im trying to do. } @SubscribeEvent public void onFOVUpdate(FOVUpdateEvent event) { EntityPlayer player = event.getEntity(); float fov = 1.0F; if(player.isPotionActive(SPEED);) { event.setNewfov(1.0f); } if(player.isPotionActive(2);) { event.setNewfov(1.0f); } } The if statement is my problem. Mod I'm trying to update: https://minecraft.curseforge.com/projects/fov-control (by update I mean just the parts I want because I'm lazy lol)

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.