Started by
Mazepa
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.