Trying to make a consumable enchant items in inventory upon usage, doesn't seem to work. What am I doing wrong?

Started by zanyahtzee on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to make a consumable enchant items in inventory upon usage, doesn't seem to work. What am I doing wrong?
Fri, 07/30/2021 - 17:29 (edited)

Hi, haven't used MCreator in a while, and was pleasantly surprised by the abundance of new features. Figured I'd give it another whirl, except I can't quite figure out the procedure. I have an image attached of how I think it should work.

Upon consumption I want the game to scan the player's inventory for one of the items, giving the ones on top priority, and replacing the first one that it finds with an enchanted version, or better yet, enchanting the already existing item. How do I do that? I already gave it a shot, but doesn't seem to work in game. What am I doing wrong?

https://imgur.com/rxNnlqD image of the issue at hand.

Edited by zanyahtzee on Fri, 07/30/2021 - 17:29
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Huh, the image doesn't seem…
Fri, 07/30/2021 - 17:25

Huh, the image doesn't seem to want to appear no matter how I post it, so here's the imgur link instead lmao.

 

https://imgur.com/rxNnlqD