From a80615c10af51dee431fba4e1224852d9cec53ae Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Sat, 13 Jan 2024 21:43:04 -0800 Subject: [PATCH] Fixed meshes not being able to be enchanted in an Enchanting Table --- changelog.md | 4 ++++ .../java/thedarkcolour/exdeorum/item/MeshItem.java | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/changelog.md b/changelog.md index d2345ab9..2bb809ba 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/src/main/java/thedarkcolour/exdeorum/item/MeshItem.java b/src/main/java/thedarkcolour/exdeorum/item/MeshItem.java index 0e528428..794bdfd3 100644 --- a/src/main/java/thedarkcolour/exdeorum/item/MeshItem.java +++ b/src/main/java/thedarkcolour/exdeorum/item/MeshItem.java @@ -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; + } }