Problem with multiple procedures

Started by IAskModdingQuestions on

Topic category: Help with modding (Java Edition)

Last seen on 22:34, 21. May 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problem with multiple procedures

I have a few problems with procedures in my mod.

First, these two procedures have while loops that are not ending. I don't know why this could be happening.

The above procedure has a lot of redundant if loops that are collapsed for relative ease of reading.Ā 

Second, this procedure (which has one of these "if"s for every enchantment in the game plus my custom) removes the items, but it doesn't change the enchantment level:

I have looked all over the internet, and these questions have been seldom asked and never answered in a way that helped. Any help is greatly appreciated.

Last seen on 22:34, 21. May 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didn't realize the codeā€¦
Tue, 04/26/2022 - 22:28

I didn't realize the code wouldn't show up. I can't add it here.