Issue description
Hi, I wanted to ask if it's possible to add a procedure block which enchants a tool/armour/weapon/book.
This looks interesting:
// assuming you have the ItemStack passed in from the method parameters, otherwise create one // ItemStack stack = new ItemStack(whateverSwordItemHere); stack.addEnchantment(Enchantment.fireAspect, 2);
I got this from there:
https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/…
The forum is a bit older but can this work? Doesn't look like a lot code.
So that I could get a item from a inventory or blocks inventory and enchant a item in slot x with xxx.