How to check if something is Enchanted without using itemstacks?

Started by Glitched_Soul on Mon, 06/20/2022 - 14:10

Topic category: Help with modding (Java Edition)

Last seen on 04:11, 12. Aug 2022
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check if something is Enchanted without using itemstacks?
Mon, 06/20/2022 - 14:10

MCreator is Broken

Okay, as you can see. I keep getting this error. However the only way to determine if something has an enchantment is by using an itemstack, can someone explain if there's an alternative way I can check if an armor/item/weapon whatever is enchanted. I provided images, this error makes it impossible to make enchantments. I don't know if it's a bug or if it's just something I am doing wrong. Can someone help??

The Procedure I used

 

Last seen on 01:25, 14. Aug 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
change (provided itemstack)…
Mon, 06/20/2022 - 15:46

change (provided itemstack) to (item in main hand of) (source entity) or (entity). The words in parenthesis are procedure blocks.