Started by
Kaanatorium
on
Topic category: Help with Minecraft modding (Java Edition)
Hey everyone,
I’m working on my mod in MCreator 2025.2 (NeoForge 1.21.1).
Right now, I’m trying to check if the item inside a specific slot (for example slot 1 of a custom GUI) is a specific potion, like a Potion of Healing.
Here’s what I tried so far in a procedure:
Question:
👉 What’s the correct way in MCreator to check if an item in a slot is a specific potion (e.g. minecraft:healing)?
Do I need to use tags, NBT, or some built-in function?
Thanks in advance for any help! 🙏
I cannot share the crash report directly.
Oct 28 10:45 PM - Codeshare please use this.
can you upload it to pastebin?
---- Minecraft Crash Report ----// My bad.Time: 2025-10-28 19:34:34Descr - Pastebin.com
try this,
potion.getComponents().get(DataComponents.POTION_CONTENTS) instanceof PotionContents potionContents && potionContents.is(Potions.AWKWARD)You’re a lifesaver — yes, it worked this time!