Achievement by having enchanted sword at a certain level of a certain material

Started by I dont speak english on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Achievement by having enchanted sword at a certain level of a certain material

I want to do an achievement that requires having a sword of a specific material that is enchanted with a specific enchantment at a specific level (In this case Sharpness 5). I know that it should be done with a procedure and I know more or less the base, but I don't know if the way to detect if the sword is enchanted and if it is enchanted at a specific level is fine. Can someone confirm if it is ok or not? And if it's not right, can you send me an image to make the correction?
Thanks
This is the current procedure

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no image, but from…
Wed, 11/17/2021 - 04:51

There is no image, but from what if´ve read it is okay.

~Lanee