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.

Tral1s

Members
  • Joined

  • Last visited

  1. So I tried it again, and it worked! (For some reason it crashed the first time). All you have to do is Minecraft.getMinecraft().thePlayer.inventory.armorInventory[armorIndex] = itemStack; and it places it, regardless of what it is.... So I managed to put a barrier on my legs... because I'm that skilled.
  2. Hi, I'm attempting to make an armor hotswap mod where if the player right clicks a piece of armor it will replace the armor they currently have on with it. (For example, right clicking diamond boots to replace leather boots that are currently equipped) I found a thread which talks about how to do this in 1.13+, but I want to achieve this in 1.8.9. The answer there was use Minecraft.getInstance().player.inventory.armorInventory.set(armorIndex, itemStack); But in forge 1.8.9 the closest I can get is this: Minecraft.getMinecraft().thePlayer.inventory.armorInventory Which is just an ArmorStack array. How do I change the armor? Will simply updating the array do the trick? Thanks, - Tral1s (First time modder, 3d year programmer)

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.