Unbreaking has reduced effect on Tarantula Hawk Elytra
Zareul opened this issue ยท 2 comments
A regular Elytra with Unbreaking III seems to be lasting longer than a Tarantula Hawk Elytra with the same enchantment. I discovered this after noticing that, after upgrading my Elytra to a Tarantula Hawk one, durability drained faster than before I "upgraded" it.
It seems to need to check for Unbreaking here.
It seems to need to check for Unbreaking here.
I checked this in more detail, and it appears the code for applying unbreaking (DigDurabilityEnchantment#shouldIgnoreDurabilityDrop
) is giving more chance for armor to get damaged, even with Unbreaking.
Because Elytra does not extend ArmorItem
, there's only a 1 in (unbreaking lvl + 1)
chance it takes damage every second, whereas the tarantula hawk elytra has an extra 60% chance to take damage.
If the probability calculator I'm using is correct, this means that with Unbreaking 3, the elytra has a 25% chance of getting damage each second and the tarantula hawk elytra has a 70% chance to take damage every second.