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.

laufenderWahnsinn

Members
  • Joined

  • Last visited

  1. Hi, I am used to Java coding, but not so much to forge. And even after multiple days of googling, I still struggle. Right now, I am trying to read (and later modify) villager data. The idea is to be able to reset the last level of the villager, including exp and trades. Right now I am struggling to understand how to read the data, so I get the trades, level and exp. What I have found: with entity.getEntityData().getAll(); I get data, but I haven't found any information about what the entry means (only numbers for 1 to 18, while 18 is "VillagerData"). Side question: Is there a way to directly get the "VillagerData" without a "foreach"? Okay, there I have "VillagerData", but according to this 1.18.2 VillagerData I can get and set level and profession, but I don't see trades and exp. Any attempt to get "CompundTag" like CompoundTag test = entity.getEntityData(); does not work. How can I get the data so I can modify it? I am using forge-1.19.2 43.2.0. Chees

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.