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

Started by FiveNights2161 on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 months ago
Joined Jun 2021
Points:
670

User statistics:

  • Modifications: 2
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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?