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.

TehStoneMan

Forge Modder
  • Joined

  • Last visited

Everything posted by TehStoneMan

  1. How does that help keeping the slots in sync?
  2. Hello. I have a custom inventory GUI that includes a special slot for a container item. The GUI also has a couple of slots that I would like to have synced with the contents of the container item, so that the player can place or remove items from the container without changing GUI's. The contents of the container item can already be accessed by placing it into the hotbar, and right-clicking with it in hand, but that would mean needing to remove it from it's special slot first, essentially "equipping" it. Does anybody have any suggestions?
  3. I would like to read the value of foodExhaustionLevel in the player's foodStats. I have successfully used reflection to get access, but this only works in the dev environment, not the compiled code. I have tried experimenting with ObfuscationReflectionHelper, but I am not sure how it works. This is what I have so far: FoodStats stats = player.getFoodStats(); Class c = stats.getClass(); // Field f = ReflectionHelper.findField(stats.getClass(), "foodExhaustionLevel"); Field f = ObfuscationReflectionHelper.getPrivateValue(stats, <What goes here?>, "foodExhaustionLevel"); Can anybody help?
  4. After a bit of work, I have the water bar responding to biome and heat sources, as well as drinking water. What I would like to know now is how to have movement and other activity effect it like they effect food. Can anybody suggest something?
  5. That is basically what I want to do, but not sure about the coding.
  6. I'm trying to create a thirst bar, something like the food bar, but for water. So far, I have the bar appearing in the hud and working. What I would like is to have the thirst increase with activity and biome (thirst increases faster in hotter biomes) and decrease with drinking water, or eating food, but can't figure out how to get that part working. Can anybody help?

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.