Procedure (Remove Item from Inventory) Not Working

Started by Lil Shoosh on

Topic category: Help with MCreator software

Last seen on 04:08, 25. Jul 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure (Remove Item from Inventory) Not Working

Heyo!

I was making a procedure that removes enchanted books from the player's inventory. My structure was as follows:

 

Global Trigger: On player tick update

Procedure: 

"While [has (event target entity) in inventory (enchanted book)

do [Remove 1 (enchanted book) from (event target entity)"

 

However, the procedure only works on enchanted books without enchantments. 

 

How do I fix this to make it also detect/remove enchanted books with enchants?