#How to turn this json into a datapack for 1.21.5

1 messages · Page 1 of 1 (latest)

spring gobletBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 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

mild valveBOT
#
Tool: Misode
About

Misode's Datapack Generators are useful when creating files such as loot tables, predicates, advancement, worldgen files, and more!

tiny saffron
# mild valve

They already have the file, they need to know how to assemble a data pack.

barren mirage
#

oh

#

oops

mild valveBOT
tiny saffron
#

Start here

#

You have not named your folder correctly for 1.21.5

mild valveBOT
#
Updating Datapacks Past 1.21

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

worn matrix
#

So what do I need to rename?

tiny saffron
#

Compare the folder names in this message with the folder names in your data pack.

worn matrix
#

Alright thank you this

spring gobletBOT
tiny saffron
#

Now that the folder is correct, you should be able to check the logs for errors in the advancement

mild valveBOT
#
Logs

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:

  1. Enable the logs in the Minecraft Launcher (see image)
  2. 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.

tiny saffron
#

Again, please do not just throw the data pack at us

tiny saffron
#

I recommend making the advancement with Misode to ensure proper syntax

mild valveBOT
#
Tool: Misode
About

Misode's Datapack Generators are useful when creating files such as loot tables, predicates, advancement, worldgen files, and more!

worn matrix
#

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?

tiny saffron
#

What?

worn matrix
tiny saffron
#

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

worn matrix
tiny saffron
#

??

#

What are you doing to test?

worn matrix
tiny saffron
#

No the can opener. Yes the data pack

worn matrix
#

So I think the json is outdated

#

I'll try to create another.

tiny saffron
#

Then make it in the correct version on Misode??????

worn matrix
tiny saffron
#

Then you are doing something wrong

#

Show your work

worn matrix
#

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

spring gobletBOT
# worn matrix You can close this thread now.
🎗️ Is your question resolved?

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