1
/data modify entity not working
I'm standing here, looking at my cartographer.
According to
I want to remove all these gossips except one.
So I execute the following:
But when I run the same command again, he has the same 4 Gossips as before.
What am I doing wrong? I'm running Minecraft 1.16.5 with no gameplay-altering mods, testing on a singleplayer world with Cheats enabled.
According to
/data get entity @e[type=villager,limit=1,sort=nearest] Gossips
,he has 4 Gossips.I want to remove all these gossips except one.
So I execute the following:
/data modify entity @e[type=villager,limit=1,sort=nearest] Gossips set value {Gossips:[{Type:"major_positive",Value:40,Target:[I; -1701011523, 864437673, -1855586262, -112748354]}]}
pasted directly from my chat box.But when I run the same command again, he has the same 4 Gossips as before.
What am I doing wrong? I'm running Minecraft 1.16.5 with no gameplay-altering mods, testing on a singleplayer world with Cheats enabled.
Create an account or sign in to comment.
2
In my testing, I could only add gossip values to the villager but not remove them using /data modify or /data remove
Your problem is related a bug that hasnt been fixed yet
bugs.mojang.com/browse/MC-153392
Your problem is related a bug that hasnt been fixed yet
bugs.mojang.com/browse/MC-153392
I was running the wrong command earlier.
But now I'm running this:
Other commands that look like they succeeded, but don't actually change anything:
But now I'm running this:
/data modify entity @e[type=villager,limit=1,sort=nearest] Gossips set value [{Type:"major_positive",Value:40,Target:[I; -1701011523, 864437673, -1855586262, -112748354]}]
it still doesn't work; the villager's data doesn't change.Other commands that look like they succeeded, but don't actually change anything:
/data merge entity @e[type=villager,limit=1,sort=nearest] {Gossips:[{Type:"major_positive",Value:40,Target:[I; -1701011523, 864437673, -1855586262, -112748354]}]}
/data remove entity @e[type=villager,limit=1,sort=nearest] Gossips[5]