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

Started by Izan on

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:
  • MCreator plugins:
  • Comments:
Why my simple procedure does not work? (disenchant a mod sword)

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"