#How to turn this json into a datapack for 1.21.5
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1749316678:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Misode's Datapack Generators are useful when creating files such as loot tables, predicates, advancement, worldgen files, and more!
They already have the file, they need to know how to assemble a data pack.
View this guide on datapack.wiki: https://datapack.wiki/guide/getting-started/
1.21 renamed many folders that make up a Minecraft datapack, breaking virtually all datapacks from prior versions. Now, all folders which previously had plural names, except tags, now have singular names.
Below is a list of all folder names changed in 1.21:
structures -> structure
advancements -> advancement
recipes -> recipe
loot_tables -> loot_table
predicates -> predicate
item_modifiers -> item_modifier
functions -> function
tags/functions -> tags/function
tags/items -> tags/item
tags/blocks -> tags/block
tags/entity_types -> tags/entity_type
tags/fluids -> tags/fluid
tags/game_events -> tags/game_event
So what do I need to rename?
Compare the folder names in this message with the folder names in your data pack.
Alright thank you 
If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D
Now that the folder is correct, you should be able to check the logs for errors in the advancement
When making or debugging Minecraft datapacks, it is useful to have the Minecraft logs open in order to view errors quickly.
To open the logs:
- Enable the logs in the Minecraft Launcher (see image)
- Start Minecraft
The logs should open in a separate window. Datapack errors are shown in the when you /reload and are almost always in red text or yellow text.
Again, please do not just throw the data pack at us
I recommend making the advancement with Misode to ensure proper syntax
Misode's Datapack Generators are useful when creating files such as loot tables, predicates, advancement, worldgen files, and more!
Alr thanks I'm gonna try that
Alright I've updated the json and I think it should work now, but how do I get the correct command to enable the advancement in the json file?
What?
Like how do I get the command for the data pack.
What do you need a command for?
If the advancement doesn't have any errors and is in the world, it's already enabled. It will be granted when the trigger criteria is met
It unfortunately doesn't seem to be working, I think the json is outdated or something, anyways thank you for your help.
What do you mean? The datapack?
No the can opener. Yes the data pack
Well I am running the correct command, but it keeps saying unknown advancement, keep in mind that I am using an old json file to try and recreate a data pack to run the advancement.
So I think the json is outdated
I'll try to create another.
Then make it in the correct version on Misode??????
Yeah will that just ends up recreating the whole json because its invalid in the first place 😦
Ohhhhhh
Wait, I did something wrong.
Now it seems to work :DDD
Thank you.
You can close this thread now.
All I had to do was remove these, they were invalid and useless
If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D