Open Dahesor opened 2 months ago
Looks like Spyglass is detecting the wrong version.
What is your pack_format
in pack.mcmeta
at?
Looks like Spyglass is detecting the wrong version.
What is your
pack_format
inpack.mcmeta
at?
It is 48
I am pretty sure because I am using all the new things at the same time.
All other validations are those for 1.21
Update:
I tried creating a new data pack with pack format 48, and this time it is correctly validated as "value".
However when I return to the original data pack, it still has this issue that it wants me to use "name" instead of "value".
Both data packs have the same pack format 48, and for your information, the one that has this issue was in pack format of 1.20.4 and I decided to upgraded it to 48.
Can you try running the Spyglass: Reset Project Cache
command?
Can you try running the
Spyglass: Reset Project Cache
command?
This worked.
By some testing I found out that you can reproduce this by creating a data pack in lower versions, create a loot table with "type":"loot_table"
, then change the version back to 48. After renaming the folder "loot_tables" to "loot_table", this error happens.
So there is some cache that should be reset when the pack format is changed?
Yes #1212
The "loot_table" type of loot table allows player to reference another loot table. In 1.21, it uses the key "value" instead of "name".
Currently spyglass only accepts "name" for all versions.
Thanks