mojira.dev
MC-51995

Anvil destroyed by the last use will not return the item in the right slot

On a very damaged anvil, I tried to combine diamond sword having Smite V and Unbreaking III with Sharpness V enchanted book.
The anvil disappeared (destroyed), the sword dropped without the intended changes and the book was lost.

Expected behavior 1: return both items: the sword and the book
Expected behavior 2: apply the enchantment to the sword before the anvil is destroyed

Comments 2

I question the "Cannot Reproduce" resolution.

Use on a sword
/enchant player_name 17 5
/enchant player_name 16 5
You receive error message "Sharpness V can't be combined with Smite V"

The anvil gives no error message. It attempts to combine the items and consumes the book. If it happens to be the last use of the anvil, it disappear and the book is lost. My description was correct.

Trying now to reproduce, I noticed another strange behavior: successive attempts to combine the sword with the book require more and more levels even if the sword continues to have the same characteristics (Smite V and Unbreaking III).

This behavior is intended. Enchanted books will simply ignore incompatible enchantments, which is necessary for books with conflicting enchantments (e.g. Protection and Sharpness). The anvil price will go up because it thinks the sword has been modified.

Ioan Vira

(Unassigned)

Unconfirmed

Minecraft 1.7.5

Retrieved