I want to remove enchantments and enchantment books.
In 1.19, I found out that I could use morejs. But I have 1.18.
Of course, 1.18 also has morejs, but there is no 'Enchantment Filtering' event.
The only way that comes to mind right now is to inspect the changed items when the player's inventory changes, and then un-enchant the item if it has a specific enchantment.
However, this doesn't seem like a very good method.
What should I do?