-
Bug
-
Resolution: Fixed
-
Minecraft 17w50a, Minecraft 18w02a, Minecraft 18w03a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w11a, Minecraft 1.13-pre6, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 18w43a, Minecraft 1.14
-
Confirmed
-
Commands
The bug
Player data has been confirmed as something that should not be modifiable (see for example MC-120693). Yet this you can use /execute store to modify parts of it.
I'm personally not against this, it's useful and I think it's restricted to a "safe" area. This report is more to get an answer on "is this intended or not?".
Affected tags
Affected is the tag NBT key for items inside a player's Inventory key, EnderItems or SelectedItem (not a saved tag, but see MC-121900) key.
How to reproduce
- Run
/give @s stick{Test:1b}
- Make sure the stick is in the most left slot in your hotbar
- Run
/execute store result entity @s Inventory[0].tag.Test byte 5 run data get entity @s Pos[0]
- Run
/data get entity @s Inventory[0].tag.Test
→ The Test tag indeed has the 5 times the X position of the player when the second command was ran as its value
- is duplicated by
-
MC-152315 Execute store on player only works if the item already has tags
- Resolved