mojira.dev
MC-306230

Changing an adult villager into a baby villager while a player is trading with them does not close the trading UI

It is possible to trade emeralds with the villagers only on their adult individuals, but it turns out that the cubs are also quite capable of trading. Reproduce:

  • Summon villager.

  • Give him a workplace.

  • Get emeralds.

  • Set command block with command: /execute as @e[type=minecraft:villager,limit=1,sort=nearest] run data merge entity @s {Age:-24000}.

  • Build a timer on repeaters near the command unit and set a high delay on them.

  • Place the activator near the first repeater.

  • Activate the timer on the repeaters and then quickly start trading with the villager.

  • After the timer runs out and the command block makes the villager a baby, the trading UI will not be automatically closed.

Attachments

Comments 13

Thank you for helping us improve Minecraft! We saved your files:

[media]

Reproduced in 26.1-snapshot-6.

I reaged the villager after testing this issue and any trades made when the villager is in a baby state lock the villager trades.

Also, the command you gave the merge the data did not work for me.
I did
/execute as @e[type=minecraft:villager,limit=1,sort=nearest] run data merge entity @s {Age:-24000}

Well, then try to reproduce it again on the villager-gunsmith, and not on the librarian. And make sure that you did everything exactly as I did.

I think you misunderstood what I was saying.

I said I reproduced the issue and attached a video of me doing so, but the command you gave did not work and I had to modify it slightly.
The command you gave would not turn any type of villager in to a baby for me on 26.1-snapshot-6 so I gave a modified version in case a moderator had a similar issue so they could just use that instead.

I wasn’t saying the issue wasn’t reproducable and I specifically said “Reproduced in 26.1-snapshot-6.”

3 more comments

Reproduced in 26.1-snapshot-10

Did you do this in version 26.1 of Snapshot 9? And anyway, when you reproduced this bug in versions 26.1 of Snapshot 7-26.1 of Snapshot 10, did you get the same result or was it different from the previous version?

Play it again in 26.1 Snapshot 11.

Sorry for the late response.
I only tested it in the versions I listed and got the same result as you.
I would assume that it has the same result in the versions in between that I didn’t test.


Reproduced in 26.1

Replay this again in the latest version 26.1.1.

minecraft_982646

(Unassigned)

Confirmed

Platform HC

Low

Commands

26.1 Snapshot 6, 26.1 Snapshot 7, 26.1 Pre-Release 1, 26.1, 26.1.1, 26.2 Snapshot 4

Retrieved