-
Notifications
You must be signed in to change notification settings - Fork 8
Description
When server start, an error parsing JSON files prevents it from loading Knowledge Book. Error is located in data/knowledge_book/loot_table/knowledge_book.json
Error message in server log:
[15:10:14] [Worker-Main-2/ERROR]: Couldn't parse data file 'knowledge_book:knowledge_book' from 'knowledge_book:loot_table/knowledge_book.json'
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setStrictness(Strictness.LENIENT) to accept malformed JSON at line 31 Fixing the error (missing double quotes), unmask a second occurence of the same kind of error in knowledge_book:recipe/knowledge_book.json
[15:20:34] [Worker-Main-1/ERROR]: Couldn't parse data file 'knowledge_book:knowledge_book' from 'knowledge_book:recipe/knowledge_book.json' com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setStrictness(Strictness.LENIENT) to accept malformed JSON at line 24 column 18 path $.result.components.minecraft:custom_name.
Add missing double quotes in this second file allows the server to correctly process and load the data pack.
Server: Fabric 1.21.7
Data Pack: v1.1.1