Can someone tell me if I'm converting my datapack to 1.21 correctly?
I have already changed folder names, and currently I am using this site (https://misode.github.io/nbt2components/) to convert all of my code.
Please tell me if I'm converting it correctly! (Probably not) (Also, the files are really small, so if someone could help me by directly editing my files id be grateful forever)
- Example (.mcfunction):
My code: execute as @a if entity @s[tag=!coastH,nbt={Inventory:[{Slot:103b,tag:{Trim: {pattern: "minecraft:coast"}}}]}] run scoreboard players add @s coastParts 1 execute as @a if entity @s[tag=!coastH,nbt={Inventory:[{Slot:103b,tag:{Trim: {pattern: "minecraft:coast"}}}]}] run tag @s add coastH
Converted code: execute as @a if entity @s[tag=!coastH,[custom_data={Inventory:[{Slot:103b,tag:{Trim:{pattern:"minecraft:coast"}}}]}]] run scoreboard players add @s coastParts 1 execute as @a if entity @s[tag=!coastH,[custom_data={Inventory:[{Slot:103b,tag:{Trim:{pattern:"minecraft:coast"}}}]}]] run tag @s add coastH
- Example (.json):
My code: { "condition": "minecraft:entity_properties", "predicate": { "flags": { "is_sneaking": true } }, "entity":"this" }
Converted code: { "minecraft:custom_data": { "condition": "minecraft:entity_properties", "predicate": { "flags": { "is_sneaking": 1 } }, "entity": "this" } }
Thanks a lot to whoever replies!