Add an "any" option to getting enchantment level

Started by kurtfan5468 on

Topic category: Feature requests and ideas for MCreator

Last seen on 18:04, 28. Dec 2021
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add an "any" option to getting enchantment level

I've wanted to make an advancement for a while in which it can detect if an item has an enchantment level that is greater than 2. However, I noticed that no matter what I did with the "get enchantment" procedure code block, I could never find an "any" option. I really dont want to do this:

IF Get Level of Enchantment of Item in main-hand OR Item in off-hand type PROTECTION or Get Level of Enchantment of Item in main-hand OR Item in off-hand type SHARPNESS ... :

Its inconvenient and a waste of time for me and I don't want to have to spam multiple code block conditions in one IF statement to detect if an item has a level 3 enchant, or higher.