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:
The forum is a bit older but can this work? Doesn't look like a lot code.