Why my simple procedure does not work? (disenchant a mod sword)

Started by Izan on Fri, 07/08/2022 - 15:09

Topic category: Help with modding (Java Edition)

Last seen on 20:13, 3. Sep 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Why my simple procedure does not work? (disenchant a mod sword)
Fri, 07/08/2022 - 15:09

Why my simple procedure does'nt work?

 

if       event/target entity have in the inventory (mod sword)

do    disenchant (mod sword) mending

 

Also a similar procedure does'nt work.

 

if       event/target entity have in the inventory (mod sword)   and   (mod sword) have enchantment mending

do    delete 64 (mod sword) of the inventory 

 

same if instead of "delete (mod sword)..." you put "disenchant (mod sword) mending"