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.

Featured Replies

Posted

I'm trying to make a system that will go to the chest automatically and put all the items in the chest. However, I can't check if the inventory is full. I tried: 
!Arrays.asList(Minecraft.getMinecraft().player.inventoryContainer.getInventory()).contains(null)
Minecraft.getMinecraft().player.inventoryContainer.getSlot(i).getStack().getCount() (with for)
Minecraft.getMinecraft().player.inventoryContainer.getSlot(i).getStack().isEmpty() (with for)
It either just doesn't work, or doesn't work with a huge bunch of exceptions in the logs
I need to check if there are any items in the inventory slots, without slots for armor and left hand.
Doing all this on 1.12.2, 14.23.5.2860
Thanks for taking the time for a little dumb me

The version you are using is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).

Guest
This topic is now closed to further replies.

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.