Splitting enchanted books is unreliable
Darkere opened this issue ยท 5 comments
Sometimes the book does not get split. Sometimes it does. I am unable to figure out a pattern that would apply for either of the cases.
There seems to be a chance for the book to get voided entirely.
Unbreaking enchant on the anvil seems also somewhat unreliable but that is chance-based I imagine.
Splitting only has a 20% chance per level to split the book (but will always damage the anvil)
The vanishing of the book, however, is not intentional...
Yeah looking at the code I see that it is chance based... annoyingly.
if (world.rand.nextInt(Math.max(1, 6 - split)) == 0)
not sure where the 20% chance per level is supposed to come from though.