At high levels, the enchant_with_levels function of a loot table appears to break down, producing almost exclusively books of only Efficiency V or no enchantment at all.
The world attached to this report contains a datapack with loot tables that enchant a book at levels 80 through 99, and a command block to generate each one. After some experimenting, I've determined that once level 89 is reached, it's possible (although rare) for a book to be generated with no enchantment at all, and at level 99 this becomes very common. The extreme bias towards books with solely the Efficiency enchantment also becomes very apparent. While numbers this high aren't used in vanilla loot tables, it effectively hard-limits the power of enchanting used by mapmakers and technical players.
To reproduce, simply enter the world attached to this report and activate the labeled command blocks. The datapack can be found and doublechecked within the world save folder.
MC-114322 may be another attempt to describe this bug, but it was extremely vague and marked as invalid,
Environment
windows 10, java version 8 build 291
Linked issues
Attachments
Comments 2
Thank you for your report!
We're tracking this issue as MC-10755, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicate of MC-10755, unsupported levels.