Possible Bug - Get Enchant of Enchanted Book NOT WORKING

Started by Lil Shoosh on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Possible Bug - Get Enchant of Enchanted Book NOT WORKING

Heyo!

 

So, I was working on a procedure that uses the Entity Iterator block to check for enchanted books, as well as their stored enchant. However, when using "has itermstack iterator enchantment X," it does not detect. However, when using another item instead of enchanted books, it works perfectly fine.

 

Example: 

When testing for whether Mending existed on a diamond sword, I used the same procedure with "has itemstack iterator enchantment Mending," and it registered when tested in-game. However, when used with enchanted books that have Mending, it does not work.

 

Is there another method to get the enchantment stored on an enchanted book, or is this a bug?