mojira.dev
MC-254970

Villager Gossip not being modified with /data merge

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

Possibly a duplicate of MC-153392. If not a duplicate, definitely related.

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.

So wait then what is the proper path/command to make a villager angry at all players?

This is not a help desk, go look it up on the wiki.

Its not there. It's not anywhere. Trust me Ive looked.

aceplante

(Unassigned)

Unconfirmed

(Unassigned)

1.19.2

Retrieved