mojira.dev
MC-153392

Unable to remove villager gossips using /data remove

The bug

The /data remove command doesn't remove Gossips entries from villagers. I'm not sure if it matters, but this villager has a lot of Gossips entries, enough to where when you show chat and try scrolling up, the game won't let you scroll up enough to view all the entries.

How to reproduce

  1. Have a villager with Gossips entries

  2. Run /data remove command on said villager
    → ❌ Gossips entries will not be removed, as seen in the video file.

Observed Behavior

Villagers' "Gossips" tag cannot be removed by using the "/data remove" command.

Expected Behavior

Villagers' "Gossips" tag would be able to be removed by using the "/data remove" command.

Linked issues

Attachments

Comments 20

Confirmed for 19w36a

Confirmed for release 1.15.1

Still present in 20w15a

Connor Williams

Still present in 20w16a

Can confirm in 20w51a.

10 more comments

Can confirm in 1.19.4.

As an addendum to my previous comment:
I've discovered that while Villager Gossips cannot be changed with /data, Zombie Villager Gossips can! So it's possible to prevent the permanent curing discount from stacking more than once by setting a Zombie Villager's "major positive" gossips back to 0.

so i was doing some trial and error. i still need to verify but something happened when i set the value to 1. it eroded away and removed the specific gossip. so while /data remove did not want to work i actually got it to remove the major_positive.

/data modify entity @e[ID] Gossips[{Type: "major_positive", Target: [I; UUID]}].Value set value 1

what happened is that i was playing with commands and mistyped the UUID so it ended up being listed twice. not a huge deal but the OCD in me wanted the bogus one removed. you can set the value but not to zero. obviously use the entity ID and UUID specific to your world.

Can confirm in 23w31a.

Can confirm for 1.21.3

Joshua Barrineau

gegy

Confirmed

Platform

Low

Commands, Village system

/data-remove, mojang_internal_1, nbt, villager

Minecraft 1.14.2, 19w36a, 1.15.1, 20w15a, 20w16a, ..., 1.19.3, 1.19.4, 23w43b, 1.21.3, 1.21.4 Pre-Release 1

25w07a

Retrieved