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.

Morgrhim

Members
  • Joined

  • Last visited

  1. So I'm familiar with Java, but not so much the Forge API. I've gotten my environment set up, and I'm working on some code for a mod I have in mind. Part of the mod involves adding quite a few NBT tags to the player. To figure out how this works, I'm using the tutorial at https://github.com/coolAlias/Forge_Tutorials/blob/master/IExtendedEntityPropertiesTutorial.java. My questions are these: 1. When I try to use @ForgeSubscribe on line 192, I get an error "ForgeSubscribe cannot be resolved to a type". Do I need to replace this with SubscribeEvent? 2. I want to overhaul the health and armor system with my own algorithms. I've specified tags and have the algorithms worked out. If I add health and maxhealth to the NBT tags will it override the vanilla health system? 3. I'm understanding how to implement these tags for players. Is it the same for mobs? I need to be able to edit mobs as well and going through the Forge javadocs I'm not seeing how I would override mobs.

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.