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)

Active 3 weeks ago
Joined Feb 2025
Points:
9

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?

Active 2 days ago
Joined May 2021
Points:
576

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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. 

Active 3 weeks ago
Joined Feb 2025
Points:
9

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
I'm new to MCreator and have…
Tue, 02/25/2025 - 19:02

I'm new to MCreator and have no idea how to achieve that tbh, but thanks a lot for the reply.