mojira.dev
MC-83897

Enchanted Books found in chests or fished don't have enchants.

Seed for testing: -1469366519271110166

There's a temple right near the spawn point containing an enchanted book. It has the enchanted glint effect, but no enchantments.

Found in a Stronghold chest in one of the wood 2-level areas with the well in the middle and the ladder to get to the second level.
Has no enchantments, enchantments do not appear when combined with another enchanted book.
Seed: -272317511993219009
XYZ: -79 / 24 / -852

New world generated with snapshot (world seed -7582695434467690280, default conditions). Found an enchanted book in a chest in the jungle temple near to spawn, and the tool-tip shows it as an "Enchanted book" in white, without the specific enchantment.

Linked issues

MC-82893 Enchanted Books have no enchants Resolved MC-83564 Enchanted Book Bug Resolved MC-83678 Enchanted book with no enchantments found in Stronghold chest Resolved MC-83799 Book found in temple not showing specfic enchantment Resolved MC-83834 Null Enchanted Book Resolved

Attachments

Comments 38

is a dungeon generated in 15w31b effected? as you probobly tested with the same dungeon

Duplicate of MC-83336. Please search before creating new issues.

Strike that, this part of the bug is still happening in 15w31b.

I can relate to this one in 15w31c has well, found my 2nd zombie spawner and there's an enchanted book with nothing in it, I'll try and set the same seed in 1.8.8 and go to the same coordinates, I'll see if there's an enchanted book in it and I'll give myself the same in my 15w31c world. I think we can't really consider this cheating, I call it bug correcting.

Glancing at the code, the bug here seems simple enough: in the random-enchanted-book generating function in 1.8.8, it fetches the list of enchantments for the item before it upgrades the minecraft:book to minecraft:enchanted_book. In 15w31c it upgrades the book before fetching the list of enchantments. Since a minecraft:enchanted_book has zero "enchantability" it gets an empty list of enchantments in the latter case.

Is there any method of randomly generating any enchanted book in MC 1.8.8, two times I came accross an enchanted book and they have no enchants on them, if I could give myself some random one in a 1.8.8 using a command block or a /enchant command I could try to give it to myself in my 15w31c world.

28 more comments

Still being fished up 15w41b.

Confirmed as fixed in 15w42a.

Still present in 15w42a, not fixed. At least in multiplayer.

@DF: Is this a newly-created world, or is it an old world where you are finding books in chests generated in earlier versions?

Enchanted book in 15w42a

edit: oops, forgot that it doesnt quite count, as my world is from before the snapshot. Sorry for the inconvenience

Ashton Brown

Nathan Adams

Confirmed

Minecraft 15w31a, Minecraft 15w31b, Minecraft 15w31c, Minecraft 15w32a, Minecraft 15w32c, ..., Minecraft 15w39b, Minecraft 15w39c, Minecraft 15w40a, Minecraft 15w40b, Minecraft 15w41b

Minecraft 15w42a

Retrieved