When trying to create a book with the api, it gets an invalid book tag. I believe the source of this error can be found on this page at line 347. Instead of it being ENCHANTED_BOOK, it should be WRITTEN_BOOK since enchanted books do not contain messages like signed books do. I could be wrong about this issue, but I believe this is what should be done to fix it.