How to check if something is Enchanted without using itemstacks?

Started by Glitched_Soul on

Topic category: Help with modding (Java Edition)

Last seen on 14:22, 28. May 2023
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

 

Last seen on 13:56, 19. Dec 2022
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.

Last seen on 14:22, 28. May 2023
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.