I'm trying to re-add advancements to the game, like Chestful of Cobblestone, in 1.18.2. I need to check if the inventory opened is a chest, and if it contains 27 stacks of cobblestone. I'm using MCreator, but I can edit the .java files. How do I do it?