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

Started by FiveNights2161 on Wed, 06/01/2022 - 16:34

Topic category: Help with modding (Java Edition)

Last seen on 15:10, 6. Jun 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I use custom .java code to check a chest?
Wed, 06/01/2022 - 16:34

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?