'/execute store' can modify player data inside item "tags" of their Inventory or EnderItems
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
2017-12-16, 06:24 PM
2020-04-18, 01:16 AM
2019-09-06, 03:24 PM
13
25
/execute, /execute-store, player, player-data
Minecraft 17w50a - Minecraft 1.14
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