2

How can i get my data packs to work in 1.21

alex2k's Avataralex2k6/21/24 1:33 pm
2 emeralds 292 8
7/4/2024 10:19 pm
101An's Avatar101An
I am a data pack maker! I also wanted to update all of my data packs to 1.21 but it didnt work. I tried to change the pack format and it didnt work. Can someone help me how can i make so my data packs work in 1.21?
Posted by alex2k's Avatar
alex2k
Level 13 : Journeyman System
2

Create an account or sign in to comment.

8

Silabear
06/23/2024 10:15 am
He/Him • Level 68 : High Grandmaster Guard Bear
history
Silabear's Avatar
The main breaking changes added in 1.20.1 are that pretty much all default folder names have changed. For example, /data/namespace/functions has changed to be singular: /data/namespace/function. I have a full list of changes here:
  • 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
If you're updating from pre-1.20.5, then there are even more changes: all item NBT has been replaced with item components. For example, instead ofgive @p pufferfish{display:{Name:'{"text":"Babel","color":"gold","italic":false}'},CustomModelData:123}it would begive @p pufferfish[custom_name='{"text":"Babel","color":"gold","italic":false}',custom_model_data=123]
Unfortunately the only way to update this is to do it manually, which can take a bit of time. Luckily, there exists a tool to convert old NBT to components: misode.github.io/nbt2components.

If you're updating from a version before that, there are going to be even more breaking changes which I cannot list all of them, but you can check the datapack technical changelogs at misode.github.io/changelog/?tags=breaking
4
101An
07/04/2024 10:19 pm
Level 17 : Journeyman Strawberry Architect
101An's Avatar
This is very useful 1.20.5 onwards has been annoying for all Minecraft development
1
JakeLaMtn
06/23/2024 10:41 am
Level 26 : Expert Blockhead
JakeLaMtn's Avatar
I really hate this plural->singular change. Maybe there's an argument for how it's more clear or accurate, somehow. but does it really matter?

Seems silly to me.

Thanks for the info though, I'll keep this in mind when I update.
3
Silabear
06/23/2024 10:44 am
He/Him • Level 68 : High Grandmaster Guard Bear
Silabear's Avatar
Yep, everyone hates it :P
3
pizza_popcorn
06/23/2024 12:26 am
Level 38 : Artisan Crafter
pizza_popcorn's Avatar
I have the same problem! :/
1
alex2k
06/23/2024 9:59 am
He/Him • Level 13 : Journeyman System
alex2k's Avatar
me too
1
tikensht
06/21/2024 2:18 pm
Level 1 : New Miner
tikensht's Avatar
https://minecraft.wiki/w/Data_pack There is everything that mojang has changed in datapacks in 1.21.
1
alex2k
06/23/2024 10:01 am
He/Him • Level 13 : Journeyman System
alex2k's Avatar
thanks :)
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome