Let villagers talk in minecraft?

Lo
- in Mods
8

I wanted to ask how you can let villagers speak without a mod in minecraft, java version, 1.16.4, and use commands to tell them what to do and when?

Sy

No that doesn't work, only with plug-in Citizens and commandnpc. I don't know if there are mods. Must look.

Greetings from katzebiggi and stay healthy

PS: I doubt whether there's anything for 1.16.4.

Ex

Of course it works in vanilla

Ex

I take a villager with whom I can't trade. Then I create a scorboard in which I count the number of times traded with a villager. (Because the villager can't act, just right-click is enough). Now I check whether the score on the scorboard is 1. If this is true, the score -1 is calculated and a message appears in the chat.

Sy

Laugh… Without being able to program? Explain that in more detail. Where / how can I get a scoreboard without a plugin?

Ex

"/ scoreboard objectives add list minecraft.custom: minecraft.talked_to_villager"

"/ scoreboard objectives setdisplay sidebar list"

"/ scoreboard players set @p list 1"

Sy

. And that works in survival? Looks more like creative with op to me

Ex

You have to execute the command in the creative, of course, that's what we're assuming.

The rest also works in survival.

Sy

First of all, I'm not assuming anything, because the questioner asked for without mods and not without plugins and without specifying whether single player, multiplayer, own server or what. But thanks for the explanation.