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.

TLHPoE

Members
  • Joined

  • Last visited

Everything posted by TLHPoE

  1. But that check's if it's anywhere in the inventory. I'm only checking if it's in hand.
  2. Normally, the Nightvision doesn't go crazy with the light. I'm trying to make it so where you get Nightvision when you hold my sword. But I think it adds the potion effect so fast that it flickers the light a whole lot. Is there anyway I can add a delay to make sure it doesn't rapidly add the potion effect? ServerTickHandler12e3
  3. Figured it out. I never called the onPlayer method. I'll put my ServerTickHandler right here for anyone having the same problem. ServerTickHandler12e3
  4. It's a sword.
  5. I tweaked my code to check for the item ID. But I don't really know anything about item meta data values. Sorry I'm a bit of a newb at Java.
  6. Ok, I changed my method to this one. It still doesn't print anything :I
  7. I'm trying to make a check to see if the player has my sword in his/her hands. It doesn't print anything in the console when I start the client. mod_deathman12e3 (It's in the postInit) CommonProxy ServerTickHandler12e3

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.