Fixed meshes not being able to be enchanted in an Enchanting Table

This commit is contained in:
thedarkcolour 2024-01-13 21:43:04 -08:00
parent 0346a29ed4
commit a80615c10a
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
## Ex Deorum 1.15
- Added Mechanical Hammer, a machine that uses FE to hammer blocks automatically. Uses 20 FE a tick by default and takes 200 ticks (10 seconds) to hammer an item with a hammer that has no efficiency.
- Fixed not being able to enchant sieve meshes in the Enchanting Table.
## Ex Deorum 1.14
- Added Mechanical Sieve, a machine that uses FE to sift blocks automatically. Uses 40 FE a tick by default and takes 100 ticks to sift an item with no efficiency enchantment.
- Added `by_hand_only` boolean field to Sieve recipes, which allows modpack makers to add sieve drops that don't drop from the Mechanical Sieve.

View File

@ -32,4 +32,14 @@ public class MeshItem extends Item {
public boolean canApplyAtEnchantingTable(ItemStack stack, Enchantment enchantment) {
return enchantment == Enchantments.BLOCK_EFFICIENCY || enchantment == Enchantments.BLOCK_FORTUNE;
}
@Override
public boolean isEnchantable(ItemStack pStack) {
return true;
}
@Override
public int getEnchantmentValue() {
return 10;
}
}