[Fabric 1.20.4] A parsing error loading custom advancement shows up in the logs
kingkuys2123 opened this issue ยท 3 comments
Minecraft 1.20.4
Fabric 0.15.3
Fabric API 0.91.3
Java 20.0.2
NaturesCompass 2.2.3
ISSUE
A parsing error loading custom advancement shows up in the logs
LOG
[13:50:35] [Render thread/ERROR]: Parsing error loading custom advancement naturescompass:natures_compass: Not a json array: "minecraft:compass" missed input: {"has_compass":{"trigger":"minecraft:inventory_changed","conditions":{"items":[{"items":"minecraft:compass"}]}}}
Here's a fix for this
{
"parent": "minecraft:recipes/root",
"rewards": {
"recipes": [
"naturescompass:natures_compass"
]
},
"criteria": {
"has_compass": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "minecraft:compass"
}
]
}
},
"has_recipe": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "naturescompass:natures_compass"
}
}
},
"requirements": [
[
"has_compass",
"has_recipe"
]
]
}
@kingkuys2123 Where is this bit of code going? Should it be placed naturescompass.json file or somewhere else?