By doing the command:
/execute as @e[type=villager] run data merge entity @s {Gossips:[{Type:"major_positive",Value:20}]}
I would expect the villager to have good trades for everyone, And by doing the command:
/execute as @e[type=villager] run data modify entity @s Target set from entity @a[sort=nearest,limit=1]
I would expect it to be applied only to the nearest player. This however is not the case. If I simply typed it wrong feel free to let me know.
Comments 7
Not about /data remove, so not duplicate.
This is invalid, the second command is straight up incomplete, not to mention having an NBT path that leads to a non-valid field.
I saw that, doesnt really help. Anyways I kind of figured it out myself: minecraft java edition minecraft commands - Proper path to modify villager anger? - Arqade (stackexchange.com)
Possibly a duplicate of MC-153392. If not a duplicate, definitely related.