When using the item_modifiers in a datapack, you can't copy nbt from storage to other components than custom_data.
Before nbt was copied to the tag of the item. Now it is only copied to custom_data because copy_nbt does not exist anymore
storage "test": {CMD: 2}
item_modifiers/set_cmd.json :
Before | Now |
---|---|
Item:
| Item:
|
Result: /data get @s SelectedItem =
|
Result: /data get @s SelectedItem.components =
|
Linked below are the 2 datapacks each corresponding with their mc version.
I created some click events with tellraw to easily see the process (also attached the images with the code & results)
In the datapack I set the target to "components.custom_model_data" but its still the same result.
Linked issues
is duplicated by 2
Attachments
Comments 8
How would I reproduce this? Are you able to attach a datapack that can be used to reproduce this bug?
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
This is not a feature request!
You were able to copy nbt to any item tag in the item modifiers! Now with the components, this has been overlooked and you only can copy to custom data instead of any tag/other components!
This is crucial to many datapacks! This was a feature and now its broken!
Please attach steps to reproduce this issue, including the expected and observed results.