How to include all the slots available of a chest instead of a specific one.

Started by DutaBoi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to include all the slots available of a chest instead of a specific one.

So basically I want to use the command "Get number of items from slot" but instead of one specific slot I want to include all the slots available in the chest. Is that even possible?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You would need to create a…
Tue, 02/25/2025 - 04:40

You would need to create a loop that cycles through each slot by incrementing a variable and get every slot separately and then probably write that to a list to perform whatever your operations are.