How do I use custom .java code to check a chest?

Started by FiveNights2161 on

Topic category: Help with modding (Java Edition)

Last seen on 21:54, 13. Feb 2024
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I use custom .java code to check a chest?

I wanna re-add Chestful of Cobblestone to the game using a mod. I know I can't do it with code blocks, but what's the custom .java code for checking if the gui is a chest and if all the stacks are a specific item?