mojira.dev
MC-171678

"Unable to modify player data"

Is this a bug? I have a command that should work to directly modify the inventory, to make it so my single player spectator server world makes it so everyone can see what's in my inventory.

execute as @a[name=!Roadhog360] run data modify entity @s Inventory set from entity @a[name=Roadhog360,limit=1] Inventory

However, it doesn't work, and targeting the player directly results in "Unable to modify player data". Considering this has a dedicated message I can't be sure if this is a bug.

But if this gets closed with 'Works as Intended'... Why? I don't see any reason to restrict this and it throws so many good redstone ideas right into the trash.

Linked issues

Comments 3

violine1101

Thank you for your report!
We're actually already tracking this issue in MC-122102, so I resolved and linked this ticket as a duplicate.

However, that ticket has already been resolved. That means that this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

violine1101
Roadhog360

Comment 1: I searched "Unable to modify player data" before posting this ticket. Annoyingly, Jira didn't even return any related search results to what I searched no matter how I worded it
Comment 2: That makes so much sense, than you so much. So... with that being said, how am I supposed to sync a player inventory?

Roadhog360

(Unassigned)

Unconfirmed

(Unassigned)

20w06a

Retrieved