How to check if something is Enchanted without using itemstacks?

Started by Glitched_Soul on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if something is Enchanted without using itemstacks?

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

 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey Im0d102. Thank you so…
Mon, 04/17/2023 - 02:35

Hey Im0d102. Thank you so much! This helped me make something I thought was impossible for a long time.