#Resource for converting from older version to 1.21

1 messages · Page 1 of 1 (latest)

sand sluice
#

I have a datapack we used to use on our server called Custom Archeology which allows one to throw an item on the ground, cover it with a sand block, and it would convert the item into a block of suspicious sand with that item inside. It has not been updated to 1.21, so I am taking a stab at it.

Things I have done:
Update the datapack version in the .mcpack file, and rename the folder structures from plural to singular. I have also tried running a lot of the code manually in game via commands to try and find the lines that might be broken.

I know Mojang overhauled a lot with the recent update, and changed a lot of item things to components.

Are there any guides for converting from older code into the newer formats that people are aware of yet? If not, are there any guides that have been put out for foundational .mcfunction and datapack work for 1.21? I have tried to parse the Minecraft wiki, but it's unfortunately still a little above my head.
Thank you

I believe the errors to be specifically in the bugfix:item_macro_tag.mcfunction
bugfix:item_macro.mcfunction
customsus:set_gravel.mcfunction
customsus:set_sand.mcfunction

brittle pythonBOT
#

<@&1201956957406109788>

Someone will come and help soon!

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

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

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

wide tinsel
#

I don't know if any guides off the top of my head, it's mostly just converting any items NBT that was contained within tag:{} (which is most item NBT) to components, as you identified.

This is a great tool for it. There's a few different formats that components get used in, and this will allow you to convert the old NBT format into any of those components formats
https://misode.github.io/nbt2components/

sand sluice
#

I will take a look at this tool. Thank you. I want to get my understanding to the point where I can start helping on here, instead of just asking for help. 🙂

opaque agate
#

That’s good!

#

I wish more people would have that mentality 😄

#

||(The website Kano linked is amazing for updating btw)||

torn marsh
#

Also to get anything to work, you'll need to know this:

terse abyssBOT
#
:information_source: Updating Datapacks Past 1.21

1.21 renamed many folders that make up a Minecraft datapack, breaking virtually all datapacks from prior versions. Most plural folder names were renamed to their singular variant. For example, the functions folder in previous versions, is now named function. The only folder that is still plural is tags.
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

wide tinsel
torn marsh
#

ah sorry, I must have missed that

brittle pythonBOT
# brittle python <@&1201956957406109788>
Question Closed

Your question, #1255334857781809193 (Resource for converting from older version to 1.21), was resolved!

Original Message

#1255334857781809193 message

Duration open

16h17m