I”m working on an adventure map, and I”m completely stuck on the dialogue part of it. Is there any way to make certain villagers have certain bits of speech? For example, Villager 1 says “Hello!” and then “How are you?” when right clicked, and Villager 2 says “Greetings!” when right clicked. I”ve got the right click detection working, but when I try it out, they both speak at the same time. Is there a workaround for this, preferably with one command block? I”m using the latest 1.14 snapshot.
Đang xem: Minecraft how to talk to villagers
Firstly, make a scoreboard objective for talking to villagers.
/scoreboard objectives add talk minecraft.custom:minecraft.talked_to_villagerThen, run this in a repeat command:
For this next part to work each villager must have a unique tag or score. Run this in a chain command:
Then remove the talk tag from all villagers and reset all talk scores in repeat command blocks.
Thanks for contributing an answer to Arqade!
Please be sure to answer the question. Provide details and share your research!
But avoid …
Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.
Read more: how to get the shipyard in wow
To learn more, see our tips on writing great answers.
Post Your Answer Discard
Not the answer you're looking for? Browse other questions tagged minecraft-java-edition minecraft-commands or ask your own question.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.3.30.38946
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our