Due to an issue with how vaults store some of their data, the vault to get new enchanted books wouldn't work on some worlds which had not been played in long enough.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }