Check if item is in slot

Started by FluffigBoll on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check if item is in slot
Thu, 10/19/2023 - 16:07 (edited)

I am making a mod where you can incinerate obsidian into molten obsidian, now I need to be able to check if two items are placed in 2 slots to make this happen, obsidian and a bucket. And what I use is "while this GUI is open tick". And this seems to crash my game when I open the GUI. What would you recommend doing to fix this? and also how do I paste the photo in here so you can see?

Edited by FluffigBoll on Thu, 10/19/2023 - 16:07
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator doesn't save image…
Thu, 10/19/2023 - 17:31

MCreator doesn't save image files, so if you want to paste photos, you need to upload the photo anywhere else, (Imigur, pastebin, Wix, etc.), and then copy the URL. A lot of fourums and stuff do that to save space.

As for your problem, this should be the correct way to do this. If the game is crashing, it's probably either trying to reference something that doesn't exist, or looping something endlessly without a stop condition. I recommend double checking your dependencies, and making sure you're referencing the correct slots. (Keeping in mind Slot ids start at 0 and count upwards.) But yes, photos would be helpful.