Unable to apply Unbreaking via the Anvil
LuminaSapphira opened this issue ยท 6 comments
Describe the bug
Unable to apply certain enchantments to electric tools via the anvil.
So far, this just seems to include Unbreaking. (I'm fairly sure this isn't intended since there seems to be code handling unbreaking for the tools).
Screenshots
( Book is Unbreaking III )
Environment
- Minecraft: 1.15.2
- Mod Loader: Fabric v0.7.6+build.179
- Fabric API v0.4.29+build.290-1.15
- Tech Reborn v3.3.1+build.167
- Reborn Core v4.2.1+build.91
Additional context
I've confirmed that Unbreaking is able to be applied via the Enchanting Table.
Mojang changed the enchant so tools without durability cannot have unbreaking anymore. It sorta makes sense tbh. Especially since the tools can't break anyway, it's probably unnecessary to have unbreaking make them last longer.
On the other hand unbreaking wildly used to not consume power.
Should we try to apply it anyway?
The unbreaking enchantment is able to be applied via the enchanting table though - and it is used in the code to reduce power cost by adding a chance to not consume power on usage. If Unbreaking isn't desired for this effect, is it possible to add a new enchantment for powered tools that specifically reduces power draw?
Agreed, though it could be an earlier-game way to slow down power drain so recharging as often isn't necessary prior to getting the charging packs