Topic category: Help with modding (Java Edition)
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.