Bags in bags [FIXED]

Started by Mazepa on

Topic category: Help with modding (Java Edition)

Last seen on 06:57, 30. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bags in bags [FIXED]
Wed, 06/22/2022 - 18:30 (edited)

Bags of different tiers can be put into bags of another, as they have different GUIs

So, I create bags with three tiers: 1 - 9 slots; 2 - 18 slots and fire resistance; 3 - 27 slots and fire resistance. But I have a problem, I can't put any tier bags into same tier bags, but I can put a tier 2 bag into a tier 1 bag. How to make it so that bags of any level cannot be placed in the gui of any bag?

Edited by Mazepa on Wed, 06/22/2022 - 18:30
Last seen on 06:57, 30. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I fixed that by…
Wed, 06/22/2022 - 18:29

Okay, I fixed that by creating a checking procedure that looped through each slot, if it's a bag, it returns it to the inventory with the contents.