#updating from 1.20 to 1.21

1 messages · Page 1 of 1 (latest)

sudden wing
#

someone made a datapack i really like but they completely rehauled the datapack and i like the older version better so i need help making this datapack a 1.21 one. (i know formats have changed a lot in 1.20 i have each version)

toxic harnessBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

toxic harnessBOT
# toxic harness <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

snow forgeBOT
#
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

grand jay
#

well, first you need to rename the folders, and then you need to update all the commands where there are nbt items to components.

sudden wing
#

i leave the "nbt" like that right?

unique quiver
#

No, in 1.20.5 MC switched to “components”.

#

Just a quick question, have you ever made a datapack before this?

sudden wing
#

yeah but it was a really simple one im a c# dev

sudden wing
sudden wing
#

like this?

grand jay
#

what's with the format, why are the brackets backwards

sudden wing
#

its a json file in the notes app im resetting up vusial studio rn

sudden wing
#

is this right?

grand jay
sudden wing
#

how do i add an object?

prime geyser
#

You have to edit the json manually

sudden wing
#

ok

prime geyser
#

So where you see "minecraft:custom_data":{} in the json, just put the custom data you want inside the {}, but make sure it’s in json format (basically make sure it’s "key":value and not key:value)

sudden wing
#

whats this?

prime geyser
#

Where is this in the advancement?

sudden wing
#

enchantment-plus-v3-1_1-20-4\data\enchantmentplus\advancement\custom

#

i think its because i didnt do the "enchantment-plus-v3-1_1-20-4\data\minecraft" folder yet

prime geyser
#

in the advancement

sudden wing
untold rapids
#

Yeah that probably doesn't have a supported predicates field

#

You need to use components for that

grand jay