Ex Nihilo: Creatio

Ex Nihilo: Creatio

17M Downloads

Enchanting Meshes

NielsPilgaard opened this issue · 10 comments

commented

Hey!
I was wondering, is it intentional that you cannot enchant meshes directly in an Enchanting Table or not?

Minecraft 1.12.2
exnihilocreatio-1.12-0.1.7.63

commented

It looks like it is suppose to be able to apply the enchantments at the table.

commented
commented

All the enchantments have

public boolean canApplyAtEnchantingTable(ItemStack stack) {
    return stack.getItem() instanceof ItemMesh;
}

so it is trying to allow for them to added in the table.

commented
commented

I'm looking at it now, it appears that the canApplyAtEnchantingTable is never being called on the meshes.

commented

I found the issue, we just need to override isEnchantable to return true. The enchantability values seem all messed up and prevents anything but efficiency from being selected.

commented
commented

Never mind about the enchatability...my test setup had no bookshelves.

commented

Thanks!

commented

Fix merged.