Before 1.20.5 Snapshot, I used macros to give items to players. I passed the item's id, Count, and tags as macro parameters into a function(for example,macro:{id:"minecraft:stick",Count:23b,tag:{display:{Name:'"114514"'}}}), then utilized the command
This way, I obtained the command. It looks like this:
But in 1.20.5 Snapshot, square brackets are used in the give command to add item components, which differs from how item components are stored within items (using curly braces rather than square brackets).
The serialization result differs from the string format provided during deserialization, forcing developers to abandon this convenient method of giving items to players. This is just one of the many inconveniences. I suggest using the same curly braces format to represent item components everywhere, including in the give command.
Please sign in to leave a comment.
0 Comments