How can I check for a modded enchantment on an Item?

Started by unk_capa on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I check for a modded enchantment on an Item?

Hello so i'm trying to make a procedure which checks if the provided itemstack has an enchantment from another mod and turns a variable to true if it does. I'm working with version 2024.4 since im modding on 1.20.1. Is there anyway? 

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't think you really can…
Thu, 06/18/2026 - 15:32

Don't think you really can without locking the code as you need to import the mods enchantments into the procedure, if you set up the procedure with a custom enchantment from your own mod, lock the code then alter the import to match the mod you want as well the enchantment to the mod you want

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The new NBT tags in 2026.2…
Tue, 06/23/2026 - 19:02

The new NBT tags in 2026.2 could probably let you search for an enchant.