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.

Vulon

Members
  • Joined

  • Last visited

  1. Thanks, Ernio and Spider. Basically I should change all instances of EntityPlayer to EntityPlayerMP? Also, other slightly unrelated question. Could I use UUID to differentiate between players when checking if a player is wearing a full set of my armor and if so giving them effects? Thanks again for you help.
  2. So, I already found code that lets me detect wether a player has an achievement or not. I used Minecraft.getMinecraft().thePlayer.getStatFileWriter.hasAcheivementUnlocked(LostSouls.getAngel); This is supposed to check if the player has this achieve, and if they have a certain item in their inventory, then take that item and replace it with another item. There are two instances I check for, one if you have the angel achieve and one if you have the demon achieve. If you have the demon one, it takes angel items and replaces them with a different item. Same for the angel achieve but with demon items instead. It is also supposed to cancel getting the other achieve. While this works great in single player, in multiplayer it goes haywire. Whilst testing the mod in multiplayer with a friend, I tried to get the demon achieve and everything was well- until my friend went for the angel achieve. Not only did this result in the replacement of my items as if I had the angel achieve, which is bad enough, and when I tried to place angel items in my inventory they were also replaced, which is supposed to happen as I had the demon achieve, but I got the angel achieve when I did so. That is not supposed to happen. I suspect the error is in the fact that thePlayer is EntityPlayerSP, but I don't know another way to detect achievements. Can anyone help? Code:

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.